Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/linklocal_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/linklocal_plugin.py')
-rw-r--r--src/linklocal_plugin.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/linklocal_plugin.py b/src/linklocal_plugin.py
index e4a821b..1e98ac3 100644
--- a/src/linklocal_plugin.py
+++ b/src/linklocal_plugin.py
@@ -76,7 +76,13 @@ class LinkLocalPlugin(TelepathyPlugin):
if had_avahi:
_logger.info('Avahi disappeared from the system bus - '
'stopping...')
- self.cleanup()
+ self.stop()
+
+ def cleanup(self):
+ TelepathyPlugin.cleanup(self)
+ if self._watch is not None:
+ self._watch.cancel()
+ self._watch = None
def _could_connect(self):
return self._have_avahi