Skip to content

Commit

Permalink
Bump the hb timeout to 10 seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
cereal2nd committed Jun 26, 2024
1 parent c220c71 commit 0f841a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion duotecno/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 0f841a9

Please sign in to comment.