How to force BluetoothServerSocket to stop waiting for 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 serversocket waiting for connection.
I know about accept(int timeout) but it is not what i need.
Is there any solutions or walkarounds?
Thank You.