tuhi: fix cold plug of devices last seen in pairing mode

fix ca82af78de ("tuhi: handle cold-plugged devices").

The point of deciding whether a device was in the pairing mode was actually
ignored when building the list of available devices.
pull/40/head
Benjamin Tissoires 2018-01-29 09:14:41 +01:00
parent 7d86305b52
commit 56be286d68
1 changed files with 1 additions and 1 deletions

View File

@ -241,7 +241,7 @@ class Tuhi(GObject.Object):
d = self.devices[bluez_device.address]
if Tuhi._is_pairing_device(bluez_device):
if pairing_device:
d.paired = False
logger.debug('{}: call Pair() on device'.format(bluez_device.objpath))
elif d.listening: