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

Commit 4e0b70bd authored by Chienyuan's avatar Chienyuan Committed by android-build-merger
Browse files

Merge "BluetoothManagerService: catch NoSuchElementException for unlinkToDeath" am: 6227b441

am: 082be76c

Change-Id: I38ac4a840430e6e33e4574cdacac20bc06687545
parents 3a71f850 082be76c
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;

@@ -1279,7 +1280,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;