Merge "Unlock mBluetoothLock.readLock() instead of double-locking it"

This commit is contained in:
Treehugger Robot
2016-06-09 21:10:28 +00:00
committed by Gerrit Code Review

View File

@@ -225,7 +225,7 @@ class BluetoothManagerService extends IBluetoothManager.Stub {
} catch(RemoteException e) { } catch(RemoteException e) {
Log.e(TAG,"Unable to call onBrEdrDown", e); Log.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