From a4295b8bae08745615105f66afdbab4cc42af000 Mon Sep 17 00:00:00 2001 From: Cody Bumgardner Date: Sat, 3 Aug 2024 17:17:19 -0400 Subject: [PATCH] revert stunnel --- .../controller/core/StaticPluginLoader.java | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/src/main/java/io/cresco/agent/controller/core/StaticPluginLoader.java b/src/main/java/io/cresco/agent/controller/core/StaticPluginLoader.java index 726d246..c868acd 100644 --- a/src/main/java/io/cresco/agent/controller/core/StaticPluginLoader.java +++ b/src/main/java/io/cresco/agent/controller/core/StaticPluginLoader.java @@ -229,29 +229,29 @@ public void run() { } } - - for (String pluginId : pluginList) { - - try { - //check if plugin is already running already - if (!controllerEngine.getPluginAdmin().pluginExist(pluginId)) { - //check if plugin should be running - if (controllerEngine.getGDB().getPNodePersistenceCode(pluginId) == 10) { - - //start new plugin - Map configMap = getPluginConfigMap(pluginId); - if (configMap != null) { - String pluginID = controllerEngine.getPluginAdmin().addPlugin(configMap); - } + + for (String pluginId : pluginList) { + + try { + //check if plugin is already running already + if (!controllerEngine.getPluginAdmin().pluginExist(pluginId)) { + //check if plugin should be running + if (controllerEngine.getGDB().getPNodePersistenceCode(pluginId) == 10) { + + //start new plugin + Map configMap = getPluginConfigMap(pluginId); + if (configMap != null) { + String pluginID = controllerEngine.getPluginAdmin().addPlugin(configMap); } } - - } catch (Exception ex) { - logger.error("Failed to restart plugin: " + pluginId); - ex.printStackTrace(); } + } catch (Exception ex) { + logger.error("Failed to restart plugin: " + pluginId); + ex.printStackTrace(); } + + } //list might be large clear them pluginList.clear(); systemPluginConfigList.clear();