diff options
author | Stephane Gamard <stephane.gamard@sonarsource.com> | 2014-08-29 10:37:02 +0200 |
---|---|---|
committer | Stephane Gamard <stephane.gamard@sonarsource.com> | 2014-08-29 10:37:44 +0200 |
commit | c53c476652f3b175e96d76f12b1cc20b1873a195 (patch) | |
tree | f500d89370fbc6134d4304d63e15b4f010d7a0c6 | |
parent | 8b351a6aa49e7ab626721023b9689d798f450e67 (diff) | |
download | sonarqube-c53c476652f3b175e96d76f12b1cc20b1873a195.tar.gz sonarqube-c53c476652f3b175e96d76f12b1cc20b1873a195.zip |
SONAR-4898 - Fixed process-locking monitor
-rw-r--r-- | server/process/sonar-process/src/main/java/org/sonar/process/Monitor.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/server/process/sonar-process/src/main/java/org/sonar/process/Monitor.java b/server/process/sonar-process/src/main/java/org/sonar/process/Monitor.java index 0068992b3f0..ca227daa248 100644 --- a/server/process/sonar-process/src/main/java/org/sonar/process/Monitor.java +++ b/server/process/sonar-process/src/main/java/org/sonar/process/Monitor.java @@ -107,9 +107,9 @@ public class Monitor extends Thread implements Terminable { interrupt(); } } - } - if (ok) { - Thread.sleep(PING_DELAY_MS); + if (ok) { + Thread.sleep(PING_DELAY_MS); + } } } catch (InterruptedException e) { LOGGER.debug("Monitoring thread is interrupted"); |