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

Commit b5da11bb authored by Hemant Gupta's avatar Hemant Gupta Committed by Andre Eisenbach
Browse files

MAP: Remove redundant call to sendShutdownMessage to prevent crash

Usecase:
Perform BT off/on repeatedly.

Issue:
Bluetooth crashes.

Fix:
Remove redundant call to sendShutdownMessage() from stop API to prevent
MapServiceMessageHandler becoming null and being dereferenced.

Bug: 29149190
Change-Id: I739664975043c4a1895fd2113869c87cdb704338
parent 6313bb6b
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -817,7 +817,6 @@ public class BluetoothMapService extends ProfileService {
        }
        mStartError = true;
        setState(BluetoothMap.STATE_DISCONNECTED, BluetoothMap.RESULT_CANCELED);
        sendShutdownMessage();
        return true;
    }