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.
@@ -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()
