]> code.delx.au - pymsnt/commitdiff
Hopeful fix for NotificationClient.connectionLost problem
authorjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Tue, 23 May 2006 23:45:42 +0000 (23:45 +0000)
committerjamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>
Tue, 23 May 2006 23:45:42 +0000 (23:45 +0000)
git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@164 55fbd22a-6204-0410-b2f0-b6c764c7e90a

committer: jamesbunton <jamesbunton@55fbd22a-6204-0410-b2f0-b6c764c7e90a>

src/tlib/msn/msnw.py

index a23d213a15e21ae52e948ee67879b4ff37edf6a7..7b2c22cd7af1eed67ab0211c114255356682e8a0 100644 (file)
@@ -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)