mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Update bettercap.py
This commit is contained in:
@ -100,8 +100,11 @@ class Client(object):
|
|||||||
await asyncio.sleep(sleep_time)
|
await asyncio.sleep(sleep_time)
|
||||||
continue
|
continue
|
||||||
except OSError:
|
except OSError:
|
||||||
logging.warning('[bettercap] connection to the bettercap endpoint failed...')
|
sleep_time = min_sleep + max_sleep * random.random()
|
||||||
pwnagotchi.reboot()
|
logging.warning('connection to the bettercap endpoint failed...')
|
||||||
|
logging.warning('retrying connection in {} sec'.format(sleep_time))
|
||||||
|
await asyncio.sleep(sleep_time)
|
||||||
|
continue
|
||||||
|
|
||||||
def run(self, command, verbose_errors=True):
|
def run(self, command, verbose_errors=True):
|
||||||
while True:
|
while True:
|
||||||
|
Reference in New Issue
Block a user