BLE: do not try to connect twice.

Might had some interesting side effects.
Part of #1352.
This commit is contained in:
Dennis Guse
2022-08-20 09:50:34 +02:00
parent b6b81b5d3d
commit 67b174feac
@@ -122,6 +122,7 @@ public abstract class BluetoothConnectionManager<DataType> {
synchronized void connect(Context context, @NonNull BluetoothDevice device) {
if (bluetoothGatt != null) {
Log.w(TAG, "Already connected; ignoring.");
return;
}
Log.d(TAG, "Connecting to: " + device);