From 5d9574ea4f47f7c6548311e56ea64ace724b8977 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=85ke=20Forslund?= Date: Sun, 24 Sep 2017 12:35:31 +0200 Subject: [PATCH] Reorder canceling and adding event handling ==== Tech Notes ==== If cancel + add event messages arrive at roughly the same time the add would be overridden by the cancel. More intuitive to handle cancel first and add new arrived events after. --- mycroft/skills/event_scheduler.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mycroft/skills/event_scheduler.py b/mycroft/skills/event_scheduler.py index c7ee17fea2..bab242aca8 100644 --- a/mycroft/skills/event_scheduler.py +++ b/mycroft/skills/event_scheduler.py @@ -81,10 +81,10 @@ class EventScheduler(Thread): def run(self): while self.isRunning: - # Fetch newly scheduled events - self.fetch_new_events() # Remove events self.remove_events() + # Fetch newly scheduled events + self.fetch_new_events() # Update events self.update_events()