mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Close server socket when BT is disabled.
This commit is contained in:
@@ -133,6 +133,8 @@ abstract class BluetoothPlugin<SS> implements DuplexPlugin, EventListener {
|
||||
void onAdapterDisabled() {
|
||||
LOG.info("Bluetooth disabled");
|
||||
connectionLimiter.allConnectionsClosed();
|
||||
// The server socket may not have been closed automatically
|
||||
tryToClose(state.clearServerSocket());
|
||||
callback.pluginStateChanged(getState());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user