Let's die immediately if we've not finished connecting.

This commit is contained in:
Jeremy Fincher 2004-08-29 05:52:33 +00:00
parent 613a855d78
commit 32b3bce635
1 changed files with 2 additions and 0 deletions

View File

@ -813,6 +813,8 @@ class Irc(IrcCommandDispatcher):
"""Makes the Irc object *promise* to die -- but it won't die (of its
own volition) until all its queues are clear. Isn't that cool?"""
self.zombie = True
if not self.afterConnect:
self._reallyDie()
# This is useless because it's in world.ircs, so it won't be deleted until
# the program exits. Just figured you might want to know.