Skip to content

Commit

Permalink
revert stunnel
Browse files Browse the repository at this point in the history
  • Loading branch information
codybum committed Aug 3, 2024
1 parent 4ae4319 commit a4295b8
Showing 1 changed file with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<String, Object> 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<String, Object> 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();
Expand Down

0 comments on commit a4295b8

Please sign in to comment.