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

Commit 46cfc4a7 authored by Chienyuan's avatar Chienyuan Committed by android-build-merger
Browse files

Merge "BluetoothManagerService: catch NoSuchElementException for...

Merge "BluetoothManagerService: catch NoSuchElementException for unlinkToDeath" am: 6227b441a0 am: 729d31f1
am: 24f0eac5

Change-Id: I88247eb54f37f76e828cfba21709ceb0a2ebfba7
parents df20a962 24f0eac5
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -76,6 +76,7 @@ import java.util.HashMap;
import java.util.LinkedList;
import java.util.Locale;
import java.util.Map;
import java.util.NoSuchElementException;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.locks.ReentrantReadWriteLock;

@@ -1276,7 +1277,11 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
            if (mService == null) {
                return;
            }
            try {
                mService.unlinkToDeath(this, 0);
            } catch (NoSuchElementException e) {
                Log.e(TAG, "error unlinking to death", e);
            }
            mService = null;
            mClassName = null;