From 3dac5cfe354694fa14ee45ad7da16aa855b31888 Mon Sep 17 00:00:00 2001 From: Christophe Date: Fri, 5 Aug 2022 12:31:37 +0200 Subject: [PATCH] bugfix --- README.md | 2 +- build.gradle | 2 +- src/main/java/io/camunda/operate/CamundaOperateClient.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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); } }