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

View File

@ -67,6 +67,9 @@ class AsyncAdvertiser(object):
plugins.on('peer_lost', self, peer) plugins.on('peer_lost', self, peer)
def _adv_poller(self): 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: while True:
try: try:
logging.debug("polling pwngrid-peer for peers ...") logging.debug("polling pwngrid-peer for peers ...")