Correct the logic in _handleSocketError

This commit is contained in:
James Vega 2008-05-12 17:21:48 +00:00
parent ac2fe7db3a
commit e31d352e57

View File

@ -85,7 +85,7 @@ class SocketDriver(drivers.IrcDriver, drivers.ServersMixin):
def _handleSocketError(self, e):
# (11, 'Resource temporarily unavailable') raised if connect
# hasn't finished yet. We'll keep track of how many we get.
if e.args[0] != 11 and self.eagains > 120:
if e.args[0] != 11 or self.eagains > 120:
drivers.log.disconnect(self.currentServer, e)
self.scheduleReconnect()
else: