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

Commit 56c876bd authored by John Du's avatar John Du Committed by Matthew Xie
Browse files

Stop scan when client binder dies

bug 10213756
Change-Id: I01b397070f729df7c6000c2dc2613efbe8801681
(cherry picked from commit 45ba247afa1cb3c61a871b0c13f6546411afe68b)
parent c02d8ba1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -196,6 +196,7 @@ public class GattService extends ProfileService {

        public void binderDied() {
            if (DBG) Log.d(TAG, "Binder is dead - unregistering client (" + mAppIf + ")!");
            stopScan(mAppIf, false);
            unregisterClient(mAppIf);
        }
    }
@@ -948,7 +949,6 @@ public class GattService extends ProfileService {
        enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission");

        if (DBG) Log.d(TAG, "unregisterClient() - clientIf=" + clientIf);
        removeScanClient(clientIf, false);
        mClientMap.remove(clientIf);
        gattClientUnregisterAppNative(clientIf);
    }