How to force BluetoothServerSocket to stop waiting for an incoming connection started with accept()?
When I’m calling stop() all I get is “ERROR/BluetoothSppPort(2211): invalid port state for disconnection” in LogCat.
I need to stop controlling thread but it can’t be destroyed while the socket is waiting for a connection.
I know about accept(int timeout) but it is not what I need.
Are there any solutions or workarounds?
1 Answer