Add check if connected but no interface created

This commit is contained in:
dadav 2019-11-01 18:13:38 +01:00
parent 5b66d687c4
commit 53ae8ea1cf

View File

@ -515,6 +515,11 @@ class BTTether(plugins.Plugin):
device.network, success = BTNap.nap(dev_remote)
if success:
if device.interface() is None:
ui.set('bluetooth', 'BE')
logging.info('BT-TETHER: Could not establish nap connection with %s', device.name)
continue
logging.info('BT-TETHER: Created interface (%s)', device.interface())
ui.set('bluetooth', 'C')
any_device_connected = True