mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-02 15:44:06 +01:00
Updated to make sure Relay doesn't break dying.
This commit is contained in:
parent
cb1cd25995
commit
a5e473bba2
@ -721,6 +721,9 @@ class Irc(IrcCommandDispatcher):
|
|||||||
if self in world.ircs:
|
if self in world.ircs:
|
||||||
for cb in self.callbacks:
|
for cb in self.callbacks:
|
||||||
cb.die()
|
cb.die()
|
||||||
|
# If we shared our list of callbacks, this ensures that cb.die() is
|
||||||
|
# only called once for each callback.
|
||||||
|
self.callbacks[:] = []
|
||||||
world.ircs.remove(self)
|
world.ircs.remove(self)
|
||||||
else:
|
else:
|
||||||
log.warning('Irc object killed twice.')
|
log.warning('Irc object killed twice.')
|
||||||
|
Loading…
Reference in New Issue
Block a user