reset device_fut when timeout is reached

This commit is contained in:
Cambridge Yang
2024-12-06 10:35:28 -05:00
parent b2c6efdcd6
commit f8694bae03

View File

@@ -393,7 +393,8 @@ class OfflineFindingScanner:
yield device
time_left = stop_at - time.time()
except (asyncio.CancelledError, asyncio.TimeoutError): # timeout reached
except asyncio.TimeoutError: # timeout reached
self._device_fut = self._loop.create_future()
return
finally:
await self._stop_scan()