Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 39657b80 authored by Jake Hamby's avatar Jake Hamby
Browse files

Revert "Don't call cancel discovery when its already canceelled."

This reverts commit 58d0dcb7.
Fixes a bug where discovery would start every 20-30 seconds.
parent 44868fdb
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -287,6 +287,8 @@ class BluetoothEventLoop {
                mBluetoothService.setIsDiscovering(true);
                intent = new Intent(BluetoothAdapter.ACTION_DISCOVERY_STARTED);
            } else {
                // Stop the discovery.
                mBluetoothService.cancelDiscovery();
                mBluetoothService.setIsDiscovering(false);
                intent = new Intent(BluetoothAdapter.ACTION_DISCOVERY_FINISHED);
            }