mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-17 06:00:42 +01:00
Guard against an error on exit.
This commit is contained in:
parent
f0b533098c
commit
68b9b5f378
@ -511,7 +511,8 @@ class Irc(object):
|
|||||||
def die(self):
|
def die(self):
|
||||||
for callback in self.callbacks:
|
for callback in self.callbacks:
|
||||||
callback.die()
|
callback.die()
|
||||||
world.ircs.remove(self)
|
if self in world.ircs:
|
||||||
|
world.ircs.remove(self)
|
||||||
|
|
||||||
def __hash__(self):
|
def __hash__(self):
|
||||||
return id(self)
|
return id(self)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user