Announce centrix service before browsing for other services.

portnov [2009-02-27 08:49:05]
Announce centrix service before browsing for other services.
Filename
zeroconf.py
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()
ViewGit