Failure to open Bluetooth listening socket
Got this stacktrace on the Sony Xperia Tipo (Android 4.0.4) when Bluetooth was enabled to add a contact. The device has been running for several days and making Bluetooth connections. Perhaps some kind of resource leak? Should we be releasing sockets differently to avoid this?
The Bluetooth adapter is enabled, but the attempt to add a contact fails immediately.
12-18 13:22:37.116 25207-26268/org.briarproject W/DroidtoothPlugin: java.io.IOException: No available channels
java.io.IOException: No available channels
at android.bluetooth.BluetoothAdapter.createNewRfcommSocketAndRecord(BluetoothAdapter.java:1119)
at android.bluetooth.BluetoothAdapter.listenUsingInsecureRfcommWithServiceRecord(BluetoothAdapter.java:1067)
at org.briarproject.plugins.droidtooth.InsecureBluetooth.listen(InsecureBluetooth.java:35)
at org.briarproject.plugins.droidtooth.DroidtoothPlugin$2.run(DroidtoothPlugin.java:163)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)