Skip to content
Snippets Groups Projects
Commit a478cf86 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent sending several times the same message in zeroconf.

parent d5110211
No related branches found
No related tags found
No related merge requests found
......@@ -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():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment