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

Commit 749fdf7f authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Unlock mBluetoothLock.readLock() instead of double-locking it am: 7ee53be3

am: 7fbbbd5e

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