diff --git a/pwnagotchi/bettercap.py b/pwnagotchi/bettercap.py index 55fe9fb4..0bdd95ee 100644 --- a/pwnagotchi/bettercap.py +++ b/pwnagotchi/bettercap.py @@ -99,8 +99,8 @@ class Client(object): continue except OSError: logging.warning('[bettercap] connection to the bettercap endpoint failed...') - await asyncio.sleep(10) - continue + pwnagotchi.reboot() + def run(self, command, verbose_errors=True): while True: