From 1215fda45967d64a7b7d4aa9f20a77b7dfd7b589 Mon Sep 17 00:00:00 2001 From: Simone Margaritelli <evilsocket@gmail.com> Date: Sun, 13 Oct 2019 17:45:34 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- pwnagotchi/mesh/utils.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pwnagotchi/mesh/utils.py b/pwnagotchi/mesh/utils.py index d28f04d..6d17f4e 100644 --- a/pwnagotchi/mesh/utils.py +++ b/pwnagotchi/mesh/utils.py @@ -1,5 +1,6 @@ import _thread import logging +import time import pwnagotchi import pwnagotchi.utils as utils @@ -87,3 +88,5 @@ class AsyncAdvertiser(object): except Exception as e: logging.error("error while polling pwngrid-peer: %s" % e) + + time.sleep(1)