From: Stephane Gamard Date: Fri, 29 Aug 2014 08:37:02 +0000 (+0200) Subject: SONAR-4898 - Fixed process-locking monitor X-Git-Tag: 4.5-RC1~39 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c53c476652f3b175e96d76f12b1cc20b1873a195;p=sonarqube.git SONAR-4898 - Fixed process-locking monitor --- 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");