summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPavlin Radoslavov <pavlin@google.com>2016-06-09 12:58:07 -0700
committerPavlin Radoslavov <pavlin@google.com>2016-06-09 12:58:07 -0700
commitc5ad1f87b25822ff086c75f5c165d131db0251da (patch)
tree13232b308ed0150884b1f4927035256959e56bbc
parenta4201975ca287ca4d3640a3800e6d379a8f4f80a (diff)
Unlock mBluetoothLock.readLock() instead of double-locking it
Bug: 29011117 Change-Id: Ie9e359c3ee079c2cecc33f11cfff7c0dc6406be1
-rw-r--r--service/java/com/android/server/bluetooth/BluetoothManagerService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/java/com/android/server/bluetooth/BluetoothManagerService.java b/service/java/com/android/server/bluetooth/BluetoothManagerService.java
index 3eadb5ca73..9154b8eced 100644
--- a/service/java/com/android/server/bluetooth/BluetoothManagerService.java
+++ b/service/java/com/android/server/bluetooth/BluetoothManagerService.java
@@ -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