From 2cda5e9f21f8a42183e1c15849f9a352f2c28cf6 Mon Sep 17 00:00:00 2001 From: portnov Date: Fri, 27 Feb 2009 13:49:05 +0500 Subject: [PATCH] Announce centrix service before browsing for other services. --- zeroconf.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/zeroconf.py b/zeroconf.py index ba0bcec..581124c 100644 --- a/zeroconf.py +++ b/zeroconf.py @@ -110,10 +110,11 @@ class ZeroconfThread(threading.Thread): return False def run(self): + self._avahi_connect() DBusGMainLoop(set_as_default=True) if self.timeout: gobject.timeout_add(self.timeout,self.quit) - self._avahi_connect() + self.announce() self.browse(self.types) self.ml = gobject.MainLoop() gobject.threads_init() -- 1.7.2.3