Don't forward events to uninitialized EventPlugin implementations

Another part of fixing #2090
This commit is contained in:
Gina Häußge committed 2017-08-23 18:19:37 +02:00
1 parent f77be701a2
commit a35e145649
1 file changed
+2 -1
+2 -1
View File
@@ -163,7 +163,8 @@ class EventManager(object):
octoprint.plugin.call_plugin(octoprint.plugin.types.EventHandlerPlugin,
"on_event",
args=(event, payload))
args=(event, payload),
initialized=True)
self._logger.info("Event loop shut down")
except:
self._logger.exception("Ooops, the event bus worker loop crashed")