diff --git a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java index c3b97f6d0e2..53c1253aa53 100644 --- a/src/com/android/settings/bluetooth/CachedBluetoothDevice.java +++ b/src/com/android/settings/bluetooth/CachedBluetoothDevice.java @@ -142,10 +142,10 @@ public class CachedBluetoothDevice implements Comparable private static LinkedList workQueue = new LinkedList(); private void queueCommand(BluetoothJob job) { - if (D) { - Log.d(TAG, workQueue.toString()); - } synchronized (workQueue) { + if (D) { + Log.d(TAG, workQueue.toString()); + } boolean processNow = pruneQueue(job); // Add job to queue