diff --git a/plugins/Relay.py b/plugins/Relay.py index a11dfd704..e283f898e 100644 --- a/plugins/Relay.py +++ b/plugins/Relay.py @@ -92,7 +92,7 @@ class Relay(callbacks.Privmsg): "" 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] diff --git a/src/asyncoreDrivers.py b/src/asyncoreDrivers.py index ba56ec126..23b55eb7a 100644 --- a/src/asyncoreDrivers.py +++ b/src/asyncoreDrivers.py @@ -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() diff --git a/src/irclib.py b/src/irclib.py index 60dff217a..362af5e2a 100644 --- a/src/irclib.py +++ b/src/irclib.py @@ -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)