From 0f841a977581be42842f5af623cc3a1417b60053 Mon Sep 17 00:00:00 2001 From: Maikel Punie Date: Wed, 26 Jun 2024 14:45:16 +0200 Subject: [PATCH] Bump the hb timeout to 10 seconds --- duotecno/controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/duotecno/controller.py b/duotecno/controller.py index 874ba68..15e1612 100644 --- a/duotecno/controller.py +++ b/duotecno/controller.py @@ -206,7 +206,7 @@ async def heartbeatTask(self) -> None: try: self._log.debug("Sending heartbeat message") await self.write("[215,1]") - await asyncio.wait_for(self.heartbeatReceived.wait(), timeout=3.0) + await asyncio.wait_for(self.heartbeatReceived.wait(), timeout=10.0) self._log.debug("Received heartbeat message") except TimeoutError: self._log.warning("Timeout on heartbeat, reconnecting")