diff options
-rw-r--r-- | kvmd/apps/janus/runner.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/kvmd/apps/janus/runner.py b/kvmd/apps/janus/runner.py index af7e064d..140a7b62 100644 --- a/kvmd/apps/janus/runner.py +++ b/kvmd/apps/janus/runner.py @@ -64,11 +64,13 @@ class JanusRunner: # pylint: disable=too-many-instance-attributes async def __run(self) -> None: logger = get_logger(0) + logger.info("Probbing the network first time ...") + prev_netcfg: (_Netcfg | None) = None while True: retry = 0 netcfg = _Netcfg() - for retry in range(self.__check_retries): + for retry in range(1 if prev_netcfg is None else self.__check_retries): netcfg = await self.__get_netcfg() if netcfg.ext_ip: break |