IanHarvey / bluepy

Python interface to Bluetooth LE on Linux
Other
1.59k stars 491 forks source link

How to interrupt Peripheral.connect? #385

Open frdfsnlght opened 4 years ago

frdfsnlght commented 4 years ago

I have a thread which continuously tries to connect to a peripheral. When the peripheral is out of range, the connect just sits and waits until it times out. When I want to cleanly shutdown my application, I'd like to "interrupt" the connect call that's waiting from another thread. Is there a "nice" way to do that? If not, is just exiting the app with the connect call hanging around in a daemon thread OK? Might anything bad happen with that?

mdevel1 commented 4 years ago

See #374.