From eb611d5937b59b7176ad47fe605cae4b9dabc911 Mon Sep 17 00:00:00 2001 From: jamesbunton Date: Tue, 23 May 2006 23:45:42 +0000 Subject: [PATCH] Hopeful fix for NotificationClient.connectionLost problem git-svn-id: http://delx.cjb.net/svn/pymsnt/trunk@164 55fbd22a-6204-0410-b2f0-b6c764c7e90a committer: jamesbunton --- src/tlib/msn/msnw.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.39.2