prevent sending several times the same message in zeroconf.
This commit is contained in:
parent
d51102112d
commit
a478cf863b
|
@ -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():
|
||||
|
|
Loading…
Reference in New Issue