diff --git a/README.md b/README.md index 38a1e10..6e552bb 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ You can import it to your maven or gradle project as a dependency io.camunda camunda-operate-client-java - 1.2.1 + 1.2.2 ``` diff --git a/build.gradle b/build.gradle index fbb2d4c..4aff4e7 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { } group = 'io.camunda' -version = '1.2.1' +version = '1.2.2' sourceCompatibility = '8' repositories { diff --git a/src/main/java/io/camunda/operate/CamundaOperateClient.java b/src/main/java/io/camunda/operate/CamundaOperateClient.java index abf052a..1afa3ae 100644 --- a/src/main/java/io/camunda/operate/CamundaOperateClient.java +++ b/src/main/java/io/camunda/operate/CamundaOperateClient.java @@ -196,7 +196,7 @@ public void setTokenExpiration(int tokenExpiration) { } private void reconnectEventually() throws OperateException { - if (this.tokenExpiration>0 && this.tokenExpiration<(System.currentTimeMillis()/1000+3)) { + if (this.tokenExpiration>0 && this.tokenExpiration<(System.currentTimeMillis()/1000-3)) { authentication.authenticate(this); } }