summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRiccardo (C10uD) <c10ud.dev@gmail.com>2011-09-11 16:46:14 +0200
committerRiccardo (C10uD) <c10ud.dev@gmail.com>2011-09-11 16:46:14 +0200
commit832feaa8c01c6ace27a96d302ffcc3e89afe554c (patch)
treed80f5e2b34d3e39fe1b42bc7505c5627fd77d410
parent5402980f4b357a4596cebe15d3f4acae067b36a7 (diff)
switchboard: update timeouts when sending messages, not with acks
seems like msnp18 doesn't ack(?) it just naks(?)
-rw-r--r--papyon/msnp/switchboard.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/papyon/msnp/switchboard.py b/papyon/msnp/switchboard.py
index 288e755..a86dceb 100644
--- a/papyon/msnp/switchboard.py
+++ b/papyon/msnp/switchboard.py
@@ -172,6 +172,8 @@ class SwitchboardProtocol(BaseProtocol):
@param message: the message to send
@type message: L{message.Message}"""
assert(self.state == ProtocolState.OPEN)
+ # TODO: FIXME: MSNP18 doesn't reply with ACKs?
+ self._update_switchboard_timeout()
message.add_header('MIME-Version', '1.0')
return self._send_command('MSG', (ack,), message, True,
(self._on_message_sent, message, callback), errback)
@@ -286,7 +288,8 @@ class SwitchboardProtocol(BaseProtocol):
self.emit("message-received", message)
def _handle_ACK(self, command):
- self._update_switchboard_timeout()
+ # TODO: FIXME: MSNP18 doesn't reply with ACKs?
+ #self._update_switchboard_timeout()
self.emit("message-delivered", command.transaction_id)
def _handle_NAK(self, command):