From f6226c06c40855028ae7f8266e9ae36c8eeca618 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Thu, 14 Sep 2017 18:29:03 +0200 Subject: [PATCH] Fix Quality flaws --- .../java/org/sonar/application/process/EsProcessMonitor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/sonar-main/src/main/java/org/sonar/application/process/EsProcessMonitor.java b/server/sonar-main/src/main/java/org/sonar/application/process/EsProcessMonitor.java index fd611188f95..f4b3ad9240d 100644 --- a/server/sonar-main/src/main/java/org/sonar/application/process/EsProcessMonitor.java +++ b/server/sonar-main/src/main/java/org/sonar/application/process/EsProcessMonitor.java @@ -111,7 +111,7 @@ public class EsProcessMonitor extends AbstractProcessMonitor { @Override public void close() { super.close(); - if (NetworkModule.TRANSPORT_TYPE_SETTING.exists(settings) == false + if (!NetworkModule.TRANSPORT_TYPE_SETTING.exists(settings) || NetworkModule.TRANSPORT_TYPE_SETTING.get(settings).equals(Netty4Plugin.NETTY_TRANSPORT_NAME)) { try { GlobalEventExecutor.INSTANCE.awaitInactivity(5, TimeUnit.SECONDS); -- 2.39.5