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

Skip to content
Commit 35bbba23 authored by William Escande's avatar William Escande
Browse files

Fix LockNotBeforeTry errorProne in BluetoothAdapter

[LockNotBeforeTry] Prefer obtaining the lock for mServiceLock.readLock()
outside the try block.
That way, if #lock throws, the lock is not erroneously released.

Bug: 274037299
Test: this is no-op
Change-Id: I1936032204506f3b5b76679f159b5f658a3ea442
parent 6e179238
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment