Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2008-02-13 16:52:22 (GMT)
committer Guillaume Desmottes <guillaume.desmottes@collabora.co.uk>2008-02-13 16:52:22 (GMT)
commit070b264092a93074d5062a10834c3ea00010abcc (patch)
treecbe5b9d131e21a0aaf37213dc4e0ebb391ae2dc7
parentdb3d076846d53d07cd0490bb50d4fbb87ca235c0 (diff)
linklocal_plugin: emit the want-to-connect signal instead of directly start the connect process
-rw-r--r--src/linklocal_plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linklocal_plugin.py b/src/linklocal_plugin.py
index b741d02..0fd914c 100644
--- a/src/linklocal_plugin.py
+++ b/src/linklocal_plugin.py
@@ -78,7 +78,7 @@ class LinkLocalPlugin(TelepathyPlugin):
else:
_logger.info('Avahi appeared on the system bus (%s) - '
'starting...', unique_name)
- self.start()
+ self.emit('want-to-connect')
else:
self._have_avahi = False
if had_avahi:
@@ -207,7 +207,7 @@ class LinkLocalPlugin(TelepathyPlugin):
self._have_to_wait_id = 0
_logger.debug("Timeout elapsed. Salut can connect now")
- self.start()
+ self.emit('want-to-connect')
def _ip4_address_changed_cb(self, ip4am, address, iface):
TelepathyPlugin._ip4_address_changed_cb(self, ip4am, address, iface)