def timeout():
self.timeout = None
if not d.called:
- d.errback("Timeout")
+ d.errback(Exception("Timeout"))
self.logOut() # Clean up everything
self.timeout = reactor.callLater(30, timeout)
dispatchFactory = msn.DispatchFactory()
msn.NotificationClient.logOut(self)
def connectionLost(self, reason):
- print "NotificationClient.connectionLost!!!"
if not self.factory.msncon: return # If we called logOut
def wait():
LogEvent(INFO, self.factory.msncon.ident)
LogEvent(INFO, self.ident)
del self.msncon
self.transport.disconnect()
+
+ def connectionLost(self, reason):
+ self.msncon = None
+ self.msnobj = None
+ self.ident = (self.ident[0], self.ident[1] + " Disconnected!")
def loggedIn(self):
LogEvent(INFO, self.ident)