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

Commit 5e0a30c9 authored by John Du's avatar John Du Committed by Android Git Automerger
Browse files

am 56c876bd: Stop scan when client binder dies

* commit '56c876bd':
  Stop scan when client binder dies
parents 3ff46325 56c876bd
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);
    }