mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-26 20:14:20 +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>"
|
||||||
network = privmsgs.getArgs(args)
|
network = privmsgs.getArgs(args)
|
||||||
otherIrc = self.ircs[network]
|
otherIrc = self.ircs[network]
|
||||||
otherIrc.driver.close()
|
otherIrc.driver.die()
|
||||||
del self.ircs[network]
|
del self.ircs[network]
|
||||||
world.ircs.remove(otherIrc)
|
world.ircs.remove(otherIrc)
|
||||||
del self.abbreviations[otherIrc]
|
del self.abbreviations[otherIrc]
|
||||||
|
@ -126,6 +126,9 @@ class AsyncoreDriver(asynchat.async_chat, object):
|
|||||||
def handle_close(self):
|
def handle_close(self):
|
||||||
#debug.methodNamePrintf(self, 'handle_close')
|
#debug.methodNamePrintf(self, 'handle_close')
|
||||||
self.scheduleReconnect()
|
self.scheduleReconnect()
|
||||||
|
self.die()
|
||||||
|
|
||||||
|
def die(self):
|
||||||
self.close()
|
self.close()
|
||||||
|
|
||||||
|
|
||||||
|
@ -396,7 +396,7 @@ class Irc(object):
|
|||||||
|
|
||||||
# elif msg.command == 'ERROR':
|
# elif msg.command == 'ERROR':
|
||||||
# if msg.args[0].startswith('Closing Link'):
|
# if msg.args[0].startswith('Closing Link'):
|
||||||
# self.driver.close()
|
# self.driver.die()
|
||||||
# Now update the IrcState object.
|
# Now update the IrcState object.
|
||||||
try:
|
try:
|
||||||
self.state.addMsg(self, msg)
|
self.state.addMsg(self, msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user