Skip to content

Commit 9c4b375

Browse files
authored
Merge pull request #941 from Bastian-Krause/bst/client-console-update-res
remote/client: update resources before checking NetworkSerialPort availability
2 parents 79d1dff + 9ab0e60 commit 9c4b375

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

labgrid/remote/client.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -856,8 +856,10 @@ async def _console(self, place, target, timeout, *, logfile=None, loop=False):
856856

857857
# async await resources
858858
timeout = Timeout(timeout)
859-
while not resource.avail and (loop or not timeout.expired):
859+
while True:
860860
target.update_resources()
861+
if resource.avail or (not loop and timeout.expired):
862+
break
861863
await asyncio.sleep(0.1)
862864

863865
# use zero timeout to prevent blocking sleeps

0 commit comments

Comments
 (0)