diff --git a/src/sakia/services/network.py b/src/sakia/services/network.py index 21b638b1b71e7bf79adde6b65809eef8447b000d..6db063dcb772cc7ebf320c96a9d73bdca4e3eeef 100644 --- a/src/sakia/services/network.py +++ b/src/sakia/services/network.py @@ -165,9 +165,10 @@ class NetworkService(QObject): self._must_crawl = True first_loop = True asyncio.ensure_future(self.discovery_loop()) - self.refresh_once() + await self.refresh_once() while self.continue_crawling(): if not first_loop: + self._logger.debug("Start of network crawling...") for node in self._processor.nodes(self.currency): if ( node.state > Node.FAILURE_THRESHOLD @@ -193,9 +194,9 @@ class NetworkService(QObject): self.run_ws2p_check() first_loop = False - await asyncio.sleep(15) + await asyncio.sleep(60) - self._logger.debug("End of network discovery") + self._logger.debug("End of discover_network()") async def discovery_loop(self): """