Changed drivers.close() to .die().

This commit is contained in:
Jeremy Fincher 2003-04-03 08:52:41 +00:00
parent fa1073787a
commit eb9e5c87f2
3 changed files with 5 additions and 2 deletions

View File

@ -92,7 +92,7 @@ class Relay(callbacks.Privmsg):
"<network>"
network = privmsgs.getArgs(args)
otherIrc = self.ircs[network]
otherIrc.driver.close()
otherIrc.driver.die()
del self.ircs[network]
world.ircs.remove(otherIrc)
del self.abbreviations[otherIrc]

View File

@ -126,6 +126,9 @@ class AsyncoreDriver(asynchat.async_chat, object):
def handle_close(self):
#debug.methodNamePrintf(self, 'handle_close')
self.scheduleReconnect()
self.die()
def die(self):
self.close()

View File

@ -396,7 +396,7 @@ class Irc(object):
# elif msg.command == 'ERROR':
# if msg.args[0].startswith('Closing Link'):
# self.driver.close()
# self.driver.die()
# Now update the IrcState object.
try:
self.state.addMsg(self, msg)