Skip to content

BleakDBusError 'Operation already in progress' - is it possible to stop the BleakScanner after a timeout #1629

Answered by dlech
ianchanning asked this question in Q&A
Discussion options

You must be logged in to vote

asyncio.wait_for() does not wait for canceled tasks to complete. You may have better luck with asyncio.timeout(). Otherwise you will need to protect the scanner with an asyncio.Lock() to prevent concurrent scanning.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@ianchanning
Comment options

@ianchanning
Comment options

@ianchanning
Comment options

Answer selected by ianchanning
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1628 on August 14, 2024 13:59.