From 43b83013e8ac7e1e2bb58b1bce7e672a1509d04b Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 21 Aug 2004 07:26:23 +0000 Subject: [PATCH] Fixed problem with multiple servers. --- src/socketDrivers.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/socketDrivers.py b/src/socketDrivers.py index 272f28feb..d67c49258 100644 --- a/src/socketDrivers.py +++ b/src/socketDrivers.py @@ -118,21 +118,20 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin): self.reconnect(reset=False, **kwargs) def reconnect(self, wait=False, reset=True): - server = self._getNextServer() if self.connected: drivers.log.reconnect(self.irc.network) self.conn.close() - elif not wait: - drivers.log.connect(self.currentServer) + self.connected = False if reset: drivers.log.debug('Resetting %s.', self.irc) self.irc.reset() else: drivers.log.debug('Not resetting %s.', self.irc) - self.connected = False if wait: self._scheduleReconnect() return + server = self._getNextServer() + drivers.log.connect(self.currentServer) try: self.conn = utils.getSocket(server[0]) except socket.error, e: