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?
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?