Skip to content

Commit

Permalink
stop as soon as we find a valid backend
Browse files Browse the repository at this point in the history
  • Loading branch information
totaam committed May 14, 2023
1 parent 4996a50 commit 515b810
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xpra/net/socket_util.py
Expand Up @@ -754,7 +754,7 @@ def mdns_publish(display_name, listen_on, text_dict=None):
except ImportError as e:
log("mdns support is not installed: %s", e)
return ()
PREFER_ZEROCONF = envbool("XPRA_PREFER_ZEROCONF", True)
PREFER_ZEROCONF = envbool("XPRA_PREFER_ZEROCONF", False)
imports = [import_zeroconf, import_avahi]
if not PREFER_ZEROCONF:
imports = reversed(imports)
Expand All @@ -763,6 +763,7 @@ def mdns_publish(display_name, listen_on, text_dict=None):
for i in imports:
try:
MDNSPublishers, get_interface_index = i()
break
except ImportError as e:
log("mdns import failure", exc_info=True)
exceptions.append(e)
Expand Down

0 comments on commit 515b810

Please sign in to comment.