Skip to content

Commit

Permalink
Fix delay for watchdog start
Browse files Browse the repository at this point in the history
  • Loading branch information
manatlan committed Mar 19, 2024
1 parent 2d19a78 commit cfabbf0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions htag/runners/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,12 @@ def run(self):
logger.debug("watchdog will control socket connexions")
# kill server if 'interface' is closed (only ServerWS!)
async def watchdog():

logger.debug("watchdog waiting 1st connexion")
while self.server.connected==0:
await asyncio.sleep(0.1)

logger.debug("watchdog connected, handle the life")
nb=4
while 1:
await asyncio.sleep(0.5)
Expand Down

0 comments on commit cfabbf0

Please sign in to comment.