Skip to content

Commit

Permalink
ajust the token expiration test
Browse files Browse the repository at this point in the history
  • Loading branch information
chDame committed Aug 5, 2022
1 parent 0eaf590 commit 32c6b9e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ You can import it to your maven or gradle project as a dependency
<dependency>
<groupId>io.camunda</groupId>
<artifactId>camunda-operate-client-java</artifactId>
<version>1.2.0</version>
<version>1.2.1</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
}

group = 'io.camunda'
version = '1.2.0'
version = '1.2.1'
sourceCompatibility = '8'

repositories {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/io/camunda/operate/CamundaOperateClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ public void setTokenExpiration(int tokenExpiration) {
}

private void reconnectEventually() throws OperateException {
if (this.tokenExpiration>0 && this.tokenExpiration<(System.currentTimeMillis()/1000-30)) {
if (this.tokenExpiration>0 && this.tokenExpiration<(System.currentTimeMillis()/1000+3)) {
authentication.authenticate(this);
}
}
Expand Down

0 comments on commit 32c6b9e

Please sign in to comment.