From 2cb0ac9b106a7fe0bea98cb1517e5f55d24ab8ca Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Wed, 27 Aug 2014 18:04:41 +0200 Subject: [PATCH] SONAR-4898 fix parallel termination of processes --- .../sonar-process/src/main/java/org/sonar/process/Monitor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 663fb3cbcfc..1fe64d65ba0 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 @@ -126,7 +126,7 @@ public class Monitor extends Thread implements Terminable { volatile Boolean isRunning = true; @Override - public void terminate() { + public synchronized void terminate() { LOGGER.debug("Monitoring thread is terminating"); if (!monitorExecutionService.isShutdown()) { -- 2.39.5