tuhi: do not stop discovering if search is on

If a client requested both listen and search, on listen off on the device,
the discovery was stopped too which lead to some unbalanced state in
the client.
This commit is contained in:
Benjamin Tissoires 2018-01-31 18:35:36 +01:00 committed by Peter Hutterer
parent db2f37c561
commit 3f75c927dc
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ class Tuhi(GObject.Object):
d.connect_device() d.connect_device()
def _on_listening_updated(self, tuhi_dbus_device, pspec): def _on_listening_updated(self, tuhi_dbus_device, pspec):
listen = False listen = self._search_stop_handler is not None
for dev in self.devices.values(): for dev in self.devices.values():
if dev.listening: if dev.listening:
listen = True listen = True