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

Commit 207e320d authored by Michael Chan's avatar Michael Chan Committed by Android Git Automerger
Browse files

am d70e205b: Merge change I724fc8fd into eclair

Merge commit 'd70e205b' into eclair-plus-aosp

* commit 'd70e205b':
  b/2317194 Synchronize command queue to prevent ConcurrentModificationException from happening
parents 2a0770c9 d70e205b
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -142,10 +142,10 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
    private static LinkedList<BluetoothJob> workQueue = new LinkedList<BluetoothJob>();

    private void queueCommand(BluetoothJob job) {
        synchronized (workQueue) {
            if (D) {
                Log.d(TAG, workQueue.toString());
            }
        synchronized (workQueue) {
            boolean processNow = pruneQueue(job);

            // Add job to queue