diff options
-rw-r--r-- | pf4j/src/main/java/org/pf4j/AbstractPluginManager.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java b/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java index af7c106..2f0d210 100644 --- a/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java +++ b/pf4j/src/main/java/org/pf4j/AbstractPluginManager.java @@ -861,6 +861,11 @@ public abstract class AbstractPluginManager implements PluginManager { * @param event the plugin state event */ protected synchronized void firePluginStateEvent(PluginStateEvent event) { + if (event.getPluginState() == event.getOldState()) { + // ignore events without state change + return; + } + for (PluginStateListener listener : pluginStateListeners) { log.trace("Fire '{}' to '{}'", event, listener); listener.pluginStateChanged(event); |