]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-4898 - Fixed process-locking monitor
authorStephane Gamard <stephane.gamard@sonarsource.com>
Fri, 29 Aug 2014 08:37:02 +0000 (10:37 +0200)
committerStephane Gamard <stephane.gamard@sonarsource.com>
Fri, 29 Aug 2014 08:37:44 +0000 (10:37 +0200)
server/process/sonar-process/src/main/java/org/sonar/process/Monitor.java

index 0068992b3f03121d00ca2f0671af1fd7698cba2b..ca227daa24888853ffed2e491d54e8a86105c149 100644 (file)
@@ -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");