diff --git a/README.md b/README.md index 9197a46..38a1e10 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.0 + 1.2.1 ``` diff --git a/build.gradle b/build.gradle index ba2bb15..fbb2d4c 100644 --- a/build.gradle +++ b/build.gradle @@ -6,7 +6,7 @@ plugins { } group = 'io.camunda' -version = '1.2.0' +version = '1.2.1' sourceCompatibility = '8' repositories { diff --git a/src/main/java/io/camunda/operate/CamundaOperateClient.java b/src/main/java/io/camunda/operate/CamundaOperateClient.java index 39a6c18..abf052a 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-30)) { + if (this.tokenExpiration>0 && this.tokenExpiration<(System.currentTimeMillis()/1000+3)) { authentication.authenticate(this); } }