mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-29 06:02:38 +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):
|
||||
for callback in self.callbacks:
|
||||
callback.die()
|
||||
world.ircs.remove(self)
|
||||
if self in world.ircs:
|
||||
world.ircs.remove(self)
|
||||
|
||||
def __hash__(self):
|
||||
return id(self)
|
||||
|
Loading…
Reference in New Issue
Block a user