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

Commit 58d0dcb7 authored by Jaikumar Ganesh's avatar Jaikumar Ganesh
Browse files

Don't call cancel discovery when its already canceelled.

Reported by: Leijun Tao

Change-Id: I5f04ecde16d147776a30810210cd3c973aee4d87
parent bb0773fa
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -287,8 +287,6 @@ 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);
            }