Browse Source

Plugin update fix

pull/17/head
Andrew Shvayka 10 years ago
parent
commit
6ff2d64974
  1. 2
      application/src/main/java/org/thingsboard/server/actors/plugin/PluginActorMessageProcessor.java

2
application/src/main/java/org/thingsboard/server/actors/plugin/PluginActorMessageProcessor.java

@ -181,7 +181,7 @@ public class PluginActorMessageProcessor extends ComponentMsgProcessor<PluginId>
logger.info("[{}] Plugin requires restart due to clazz change from {} to {}.",
entityId, oldPluginMd.getClazz(), pluginMd.getClazz());
requiresRestart = true;
} else if (oldPluginMd.getConfiguration().equals(pluginMd.getConfiguration())) {
} else if (!oldPluginMd.getConfiguration().equals(pluginMd.getConfiguration())) {
logger.info("[{}] Plugin requires restart due to configuration change from {} to {}.",
entityId, oldPluginMd.getConfiguration(), pluginMd.getConfiguration());
requiresRestart = true;

Loading…
Cancel
Save