Skip to content

Commit

Permalink
add small timeout after loading, we should not send any messages to t…
Browse files Browse the repository at this point in the history
…he control box in this timeframe
  • Loading branch information
cereal2nd committed May 17, 2024
1 parent f498193 commit f3ca3bd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions duotecno/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ async def _do_connect(self, testOnly: bool = False, skipLoad: bool = False) -> N
for unit in node.get_units():
self._log.debug(f"Unit: {unit}")
await unit.requestStatus()
await asyncio.sleep(5)
self.hbTask = asyncio.Task(self.heartbeatTask())
await self.enableAllUnits()

Expand Down

0 comments on commit f3ca3bd

Please sign in to comment.