self.connectionLost = self.doDisconnect
def connectionLost(self, reason):
- if not self.ready: return
def wait():
LogEvent(INFO, self.factory.msncon.ident)
msn.NotificationClient.connectionLost(self, reason)
- if self.factory.maxRetries >= self.factory.retries:
+ if self.factory.maxRetries > self.factory.retries:
+ self.factory.stopTrying()
self.factory.msncon.connectionLost(reason)
# Make sure this event is handled after any others
reactor.callLater(0, wait)