mirror of
https://github.com/malmeloo/FindMy.py.git
synced 2026-04-17 21:53:57 +02:00
reset device_fut when timeout is reached
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user