diff options
author | Yann Leboulanger <asterix@lagaule.org> | 2008-08-04 14:54:56 +0400 |
---|---|---|
committer | Yann Leboulanger <asterix@lagaule.org> | 2008-08-04 14:54:56 +0400 |
commit | e22c6e96977b1d88bdf6bbecc48f4c71650f0858 (patch) | |
tree | 0ae2f625efb59404839360b24a4e0a87471f3983 | |
parent | 2b896152a2df2e4cca64fb6a4b05b3bd7be7f039 (diff) |
fix printing of sent zeroconf messages. fixes #4051
-rw-r--r-- | src/common/zeroconf/client_zeroconf.py | 9 |
1 files changed, 8 insertions, 1 deletions
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: |