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

Commit 714fc007 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Unlock mBluetoothLock.readLock() instead of double-locking it am: c5ad1f87 am: 6ecdbed6

am: 8c30597b

Change-Id: Ib35356a1b21df9f6a4be527c190334aa4be007b3
parents cb457d23 8c30597b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -222,7 +222,7 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
                            } catch (RemoteException e) {
                                Slog.e(TAG,"Unable to call onBrEdrDown", e);
                            } finally {
                                mBluetoothLock.readLock().lock();
                                mBluetoothLock.readLock().unlock();
                            }
                        } else if (st == BluetoothAdapter.STATE_ON){
                            // disable without persisting the setting