aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--server/process/sonar-process/src/main/java/org/sonar/process/Monitor.java6
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");