Fix exception during deletion of the first event in rare case
This commit is contained in:
parent
772d68a34d
commit
4d187f61e3
1 changed files with 1 additions and 1 deletions
2
bot.py
2
bot.py
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue