diff --git a/htag/runners/runner.py b/htag/runners/runner.py index 7eeb1ab..e19536a 100644 --- a/htag/runners/runner.py +++ b/htag/runners/runner.py @@ -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)