misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-10-24 13:22:05 +02:00
parent d5ac988498
commit ce0c248cf4
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

@ -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 ...")