OSDN Git Service

Preload2: Fix object to sync on
authorAndreas Gampe <agampe@google.com>
Fri, 19 Feb 2016 17:24:43 +0000 (09:24 -0800)
committerAndreas Gampe <agampe@google.com>
Fri, 19 Feb 2016 17:24:43 +0000 (09:24 -0800)
When moving to sync on the right objects, these waits() have been
forgotten.

Change-Id: I61b0d3c5cc41b7f46fbdd3099ec44221e653001a

tools/preload2/src/com/android/preload/DeviceUtils.java

index 72de7b5..803a7f1 100644 (file)
@@ -285,7 +285,7 @@ public class DeviceUtils {
 
               if (device == null) {
                   try {
-                      wait(timeout);
+                      wfdl.wait(timeout);
                   } catch (InterruptedException e) {
                       // Ignore spurious wakeups.
                   }
@@ -304,7 +304,7 @@ public class DeviceUtils {
 
               if (!device.hasClients()) {
                   try {
-                      wait(timeout);
+                      wfcl.wait(timeout);
                   } catch (InterruptedException e) {
                       // Ignore spurious wakeups.
                   }