prevent sending several times the same message in zeroconf.

This commit is contained in:
Yann Leboulanger 2009-07-16 17:25:47 +02:00
parent d51102112d
commit a478cf863b
1 changed files with 2 additions and 0 deletions

View File

@ -697,6 +697,7 @@ class ClientZeroconf:
if conn.add_stanza(stanza, is_message):
if on_ok:
on_ok(id_)
return
if item['address'] in self.ip_to_hash:
hash_ = self.ip_to_hash[item['address']]
@ -708,6 +709,7 @@ class ClientZeroconf:
if conn.add_stanza(stanza, is_message):
if on_ok:
on_ok(id_)
return
# otherwise open new connection
if not stanza.getID():