From a5e473bba2f49fc72ab913a7ac79718248ec2a8b Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Mon, 2 Aug 2004 11:38:53 +0000 Subject: [PATCH] Updated to make sure Relay doesn't break dying. --- src/irclib.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/irclib.py b/src/irclib.py index 9388e5f0e..d4d8a21a1 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -721,6 +721,9 @@ class Irc(IrcCommandDispatcher): if self in world.ircs: for cb in self.callbacks: 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) else: log.warning('Irc object killed twice.')