From: jamesbunton Date: Tue, 23 May 2006 23:45:42 +0000 (+0000) Subject: Hopeful fix for NotificationClient.connectionLost problem X-Git-Url: https://code.delx.au/pymsnt/commitdiff_plain/eb611d5937b59b7176ad47fe605cae4b9dabc911?hp=62c622613f4f9500fcd4368f9026d415a84311b8 Hopeful fix for NotificationClient.connectionLost problem git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@164 55fbd22a-6204-0410-b2f0-b6c764c7e90a committer: jamesbunton --- diff --git a/src/tlib/msn/msnw.py b/src/tlib/msn/msnw.py index a23d213..7b2c22c 100644 --- a/src/tlib/msn/msnw.py +++ b/src/tlib/msn/msnw.py @@ -384,11 +384,11 @@ class NotificationClient(msn.NotificationClient): 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)