From ce0c248cf4f3e9453a820231f55746df415c7eb2 Mon Sep 17 00:00:00 2001
From: Simone Margaritelli <evilsocket@gmail.com>
Date: Thu, 24 Oct 2019 13:22:05 +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 a3c9bda..ca0cc0a 100644
--- a/pwnagotchi/mesh/utils.py
+++ b/pwnagotchi/mesh/utils.py
@@ -67,6 +67,9 @@ class AsyncAdvertiser(object):
         plugins.on('peer_lost', self, peer)
 
     def _adv_poller(self):
+        # give the system a few seconds to start the first time so that any expressions
+        # due to nearby units will be rendered properly
+        time.sleep(20)
         while True:
             try:
                 logging.debug("polling pwngrid-peer for peers ...")