Don't forward events to uninitialized EventPlugin implementations

Another part of fixing #2090
This commit is contained in:
Gina Häußge 2017-08-23 18:18:06 +02:00
parent f77be701a2
commit a35e145649

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")