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
parent
1d0e65dfb1
commit
5d9574ea4f
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue