kete: if listening/searching is stopped by the daemon, clean up after us

This commit is contained in:
Peter Hutterer 2018-02-12 13:31:05 +10:00 committed by Benjamin Tissoires
parent abfb0db6a8
commit 94bc52efb6
1 changed files with 2 additions and 0 deletions

View File

@ -408,6 +408,7 @@ class Searcher(Worker):
def _on_notify_search(self, manager, pspec):
if not manager.searching:
logger.info('Search cancelled')
self.stop()
def _on_unregistered_device(self, manager, device):
logger.info(f'Unregistered device: {device}')
@ -454,6 +455,7 @@ class Listener(Worker):
return
logger.info(f'{device}: Listening stopped')
self.stop()
def _on_drawings_available(self, device, pspec):
self._log_drawings_available(device)