From e22c6e96977b1d88bdf6bbecc48f4c71650f0858 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 4 Aug 2008 10:54:56 +0000 Subject: [PATCH] fix printing of sent zeroconf messages. fixes #4051 --- src/common/zeroconf/client_zeroconf.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/common/zeroconf/client_zeroconf.py b/src/common/zeroconf/client_zeroconf.py index 14c2ac162..5912dfb50 100644 --- a/src/common/zeroconf/client_zeroconf.py +++ b/src/common/zeroconf/client_zeroconf.py @@ -698,6 +698,8 @@ class ClientZeroconf: # look for hashed connections if to in self.recipient_to_hash: conn = self.connections[self.recipient_to_hash[to]] + id = conn.Dispatcher.getAnID() + stanza.setID(id) if conn.add_stanza(stanza, is_message): if on_ok: on_ok() @@ -707,13 +709,18 @@ class ClientZeroconf: hash = self.ip_to_hash[item['address']] if self.hash_to_port[hash] == item['port']: conn = self.connections[hash] + id = conn.Dispatcher.getAnID() + stanza.setID(id) if conn.add_stanza(stanza, is_message): if on_ok: on_ok() return 0 # otherwise open new connection + stanza.setID('zero') P2PClient(None, item['address'], item['port'], self, [(stanza, is_message)], to, on_ok=on_ok, on_not_ok=on_not_ok) -# vim: se ts=3: \ No newline at end of file + return 'zero' + +# vim: se ts=3: