summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Klinikowski <kkszysiu@gmail.com>2009-12-26 23:24:54 +0100
committerKrzysztof Klinikowski <kkszysiu@gmail.com>2009-12-26 23:24:54 +0100
commit494799f31ec4bfd4ea7a4f0249bc5b1c2616d648 (patch)
tree5b018c72fa03c49273a6e58c7e145e68919e0428
parentfd82ae2e2e04e23e9578d9dca227334695e113a8 (diff)
Fixed bug when server disconnect us. Now reactor should be stopped correctly.
-rwxr-xr-xgadu/lqsoft/pygadu/twisted_protocol.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gadu/lqsoft/pygadu/twisted_protocol.py b/gadu/lqsoft/pygadu/twisted_protocol.py
index 3d27c03..f3b1748 100755
--- a/gadu/lqsoft/pygadu/twisted_protocol.py
+++ b/gadu/lqsoft/pygadu/twisted_protocol.py
@@ -137,7 +137,8 @@ class GaduClient(Protocol):
print "MSG_Status=%x, recipient=%d, seq=%d" % (msg.msg_status, msg.recipient, msg.seq)
def _handleDisconnectPacket(self, msg):
- Protocol.connectionLost(self, 'Disconnect packet received')
+ Protocol.connectionLost(self, None)
+ #self.loseConnection()
def _sendAllContacts(self, result, *args, **kwargs):
contacts = list( self.user_profile.contacts )