mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
Changed drivers.close() to .die().
This commit is contained in:
parent
fa1073787a
commit
eb9e5c87f2
@ -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]
|
||||
|
@ -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()
|
||||
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user