Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion labgrid/remote/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,8 +856,10 @@ async def _console(self, place, target, timeout, *, logfile=None, loop=False):

# async await resources
timeout = Timeout(timeout)
while not resource.avail and (loop or not timeout.expired):
while True:
target.update_resources()
if resource.avail or (not loop and timeout.expired):
break
await asyncio.sleep(0.1)

# use zero timeout to prevent blocking sleeps
Expand Down