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.
pull/1099/merge
Åke Forslund 2017-09-24 12:35:31 +02:00 committed by Steve Penrod
parent 1d0e65dfb1
commit 5d9574ea4f
1 changed files with 2 additions and 2 deletions

View File

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