Fix exception during deletion of the first event in rare case

This commit is contained in:
nemunaire 2014-09-18 08:08:46 +02:00
parent 772d68a34d
commit 4d187f61e3

2
bot.py
View File

@ -255,7 +255,7 @@ class Bot(threading.Thread):
self.events.remove(self.events[0])
self._update_event_timer()
if module_src is not None:
module_src.REGISTERED_EVENTS.remove(evt.id)
module_src.REGISTERED_EVENTS.remove(id)
return True
for evt in self.events: