From c53c476652f3b175e96d76f12b1cc20b1873a195 Mon Sep 17 00:00:00 2001 From: Stephane Gamard Date: Fri, 29 Aug 2014 10:37:02 +0200 Subject: [PATCH] SONAR-4898 - Fixed process-locking monitor --- .../src/main/java/org/sonar/process/Monitor.java | 6 +++--- 1 file 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"); -- 2.39.5