Skip to content

Commit

Permalink
Only check backend_ready if login is required.
Browse files Browse the repository at this point in the history
Prevents detector from hanging when no internet connection is available.
  • Loading branch information
rodja committed Dec 1, 2023
1 parent db3bab9 commit 91245b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion learning_loop_node/node.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ async def ensure_connected() -> None:
async def _on_startup(self):
self.log.info('received "startup" lifecycle-event')
Node._activate_asyncio_warnings()
await self.loop_communicator.backend_ready()
if self.needs_login:
await self.loop_communicator.backend_ready()
self.log.info('ensuring login')
await self.loop_communicator.ensure_login()
self.log.info('create sio client')
Expand Down

0 comments on commit 91245b6

Please sign in to comment.