From a35e145649b929f76c1cd94e6ac9ee2cac808759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Wed, 23 Aug 2017 18:18:06 +0200 Subject: [PATCH] Don't forward events to uninitialized EventPlugin implementations Another part of fixing #2090 --- src/octoprint/events.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/octoprint/events.py b/src/octoprint/events.py index 6c64d69e..3bfd6d9f 100644 --- a/src/octoprint/events.py +++ b/src/octoprint/events.py @@ -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")