changeset 1420641b8bec in /home/hg/repos/gajim

details:http://hg.gajim.org/gajim?cmd=changeset;node=1420641b8bec
description: don't try to add an id to all outgoing messages. It's useless. 
Fixes #5355

diffstat:

 src/common/zeroconf/client_zeroconf.py |  10 +++-------
 1 files changed, 3 insertions(+), 7 deletions(-)

diffs (34 lines):

diff -r b540d68986e8 -r 1420641b8bec src/common/zeroconf/client_zeroconf.py
--- a/src/common/zeroconf/client_zeroconf.py    Wed Oct 28 13:46:41 2009 +0100
+++ b/src/common/zeroconf/client_zeroconf.py    Wed Oct 28 13:54:58 2009 +0100
@@ -563,7 +563,7 @@
 
        def _on_send_failure(self):
                log.error('Socket error while sending data')
-               self._owner.disconnected()
+               self._owner.on_disconnect()
                self.sent_data = None
 
 class ClientZeroconf:
@@ -698,9 +698,7 @@
                # look for hashed connections
                if to in self.recipient_to_hash:
                        conn = self.connections[self.recipient_to_hash[to]]
-                       if not stanza.getID():
-                               id_ = conn.Dispatcher.getAnID()
-                               stanza.setID(id_)
+                       id_ = stanza.getID() or ''
                        if conn.add_stanza(stanza, is_message):
                                if on_ok:
                                        on_ok(id_)
@@ -710,9 +708,7 @@
                        hash_ = self.ip_to_hash[item['address']]
                        if self.hash_to_port[hash_] == item['port']:
                                conn = self.connections[hash_]
-                               if not stanza.getID():
-                                       id_ = conn.Dispatcher.getAnID()
-                                       stanza.setID(id_)
+                               id_ = stanza.getID() or ''
                                if conn.add_stanza(stanza, is_message):
                                        if on_ok:
                                                on_ok(id_)
_______________________________________________
Commits mailing list
[email protected]
http://lists.gajim.org/cgi-bin/listinfo/commits

Reply via email to