]> code.delx.au - pymsnt/blobdiff - src/tlib/msn/msnw.py
Various fixes.
[pymsnt] / src / tlib / msn / msnw.py
index 332146cf9c09e9eadfbcb478762d65503040976c..c89889026ece8e48eabedbb60e035cab9a90c582 100644 (file)
@@ -50,7 +50,9 @@ class MSNConnection:
 
        def _getNotificationReferral(self):
                def timeout():
-                       if not d.called: d.errback()
+                       if not d.called:
+                               d.errback()
+                               self.logOut() # Clean up everything
                self.timeout = reactor.callLater(30, timeout)
                dispatchFactory = msn.DispatchFactory()
                dispatchFactory.userHandle = self.username
@@ -219,7 +221,7 @@ class MSNConnection:
        
        def logOut(self):
                """ Shuts down the whole connection. Don't try to call any
-               other methods after this one. """
+               other methods after this one. Except maybe connect() """
                if self.notificationClient:
                        self.notificationClient.logOut()
                for c in self.connectors: