diff --git a/src/common/zeroconf/client_zeroconf.py b/src/common/zeroconf/client_zeroconf.py index 7d28a5336..9f910807e 100644 --- a/src/common/zeroconf/client_zeroconf.py +++ b/src/common/zeroconf/client_zeroconf.py @@ -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():