Skip to content

Commit

Permalink
Add check if connected but no interface created
Browse files Browse the repository at this point in the history
  • Loading branch information
dadav committed Nov 1, 2019
1 parent 5b66d68 commit 53ae8ea
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pwnagotchi/plugins/default/bt-tether.py
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,11 @@ def on_ui_update(self, ui):
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
Expand Down

0 comments on commit 53ae8ea

Please sign in to comment.