Bluetooth debugging and code cleanup.
Generate a random UUID instead of using a fixed UUID. Close sockets when exceptions are thrown (not doing so can cause problems with subsequent sockets on Android). Use a semaphore with tryAcquire() instead of a lock when making alien calls, to avoid possible deadlocks.
Showing
- briar-core/src/net/sf/briar/plugins/PluginsModule.java 5 additions, 3 deletionsbriar-core/src/net/sf/briar/plugins/PluginsModule.java
- briar-core/src/net/sf/briar/plugins/bluetooth/BluetoothPlugin.java 42 additions, 29 deletions...e/src/net/sf/briar/plugins/bluetooth/BluetoothPlugin.java
- briar-core/src/net/sf/briar/plugins/bluetooth/BluetoothPluginFactory.java 7 additions, 3 deletions...et/sf/briar/plugins/bluetooth/BluetoothPluginFactory.java
- briar-core/src/net/sf/briar/plugins/droidtooth/DroidtoothPlugin.java 46 additions, 11 deletions...src/net/sf/briar/plugins/droidtooth/DroidtoothPlugin.java
- briar-core/src/net/sf/briar/plugins/droidtooth/DroidtoothPluginFactory.java 6 additions, 2 deletions.../sf/briar/plugins/droidtooth/DroidtoothPluginFactory.java
- briar-tests/src/net/sf/briar/plugins/bluetooth/BluetoothClientTest.java 4 additions, 3 deletions...c/net/sf/briar/plugins/bluetooth/BluetoothClientTest.java
- briar-tests/src/net/sf/briar/plugins/bluetooth/BluetoothServerTest.java 4 additions, 3 deletions...c/net/sf/briar/plugins/bluetooth/BluetoothServerTest.java
- briar-tests/src/net/sf/briar/plugins/bluetooth/BluetoothTest.java 2 additions, 6 deletions...sts/src/net/sf/briar/plugins/bluetooth/BluetoothTest.java
Loading
Please register or sign in to comment