diff --git a/labgrid/remote/client.py b/labgrid/remote/client.py index da8b0d072..ed24c8e42 100755 --- a/labgrid/remote/client.py +++ b/labgrid/remote/client.py @@ -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