summaryrefslogtreecommitdiff
path: root/sunshine/lqsoft/pygadu/twisted_protocol.py
diff options
context:
space:
mode:
authorKrzysztof Klinikowski <kkszysiu@gmail.com>2011-04-14 22:44:12 +0200
committerKrzysztof Klinikowski <kkszysiu@gmail.com>2011-04-14 22:44:12 +0200
commit0204feb9d7ed55caad81836881bc22e348c2d9d9 (patch)
tree15dbf8a0b9550f4dc7934adde27a84c0d01d65b1 /sunshine/lqsoft/pygadu/twisted_protocol.py
parentec12295d5686d01fa0592c9d3088ef40c19e6c0b (diff)
FIX: Crashing couple seconds after sended message should be fixed for now.
Diffstat (limited to 'sunshine/lqsoft/pygadu/twisted_protocol.py')
-rwxr-xr-xsunshine/lqsoft/pygadu/twisted_protocol.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/sunshine/lqsoft/pygadu/twisted_protocol.py b/sunshine/lqsoft/pygadu/twisted_protocol.py
index f3a4b04..b9f0f85 100755
--- a/sunshine/lqsoft/pygadu/twisted_protocol.py
+++ b/sunshine/lqsoft/pygadu/twisted_protocol.py
@@ -149,13 +149,13 @@ class GaduClient(Protocol):
self.msg_id += 1
self.user_profile.onMessageReceived(msg)
- self.sendMsgAck(self.msg_id)
+ self.sendMsgAck(msg.seq)
def _handleMessageAckPacket(self, msg):
print "MSG_Status=%x, recipient=%d, seq=%d" % (msg.msg_status, msg.recipient, msg.seq)
def _handleTypingNotifyPacket(self, data):
- #print "MSG Typing Notify uin=%d, type=%d" % (data.uin, data.type)
+ print "MSG Typing Notify uin=%d, type=%d" % (data.uin, data.type)
self.user_profile.onTypingNotification(data)
def _handleDisconnectPacket(self, msg):
@@ -202,6 +202,7 @@ class GaduClient(Protocol):
self._log("All contacts exported.")
def sendPing(self):
+ print '[PING]'
if self.firstPing != True:
self._sendPacket( Resolver.by_name('PingPacket')() )
self.firstPing = False