Copy the collection of plugins before passing it to the poller.

This commit is contained in:
akwizgran
2014-03-01 10:44:32 +00:00
parent a2d099ea17
commit 90ad3caedd

View File

@@ -107,7 +107,8 @@ class PluginManagerImpl implements PluginManager {
} }
// Start the poller // Start the poller
if(LOG.isLoggable(INFO)) LOG.info("Starting poller"); if(LOG.isLoggable(INFO)) LOG.info("Starting poller");
poller.start(plugins.values()); List<Plugin> start = new ArrayList<Plugin>(plugins.values());
poller.start(Collections.unmodifiableList(start));
return true; return true;
} }