From f2a9933fa7082daf97d8290c0f9d001ba63b62aa Mon Sep 17 00:00:00 2001 From: Andreas Gampe Date: Fri, 19 Feb 2016 09:24:43 -0800 Subject: [PATCH] Preload2: Fix object to sync on When moving to sync on the right objects, these waits() have been forgotten. Change-Id: I61b0d3c5cc41b7f46fbdd3099ec44221e653001a --- tools/preload2/src/com/android/preload/DeviceUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/preload2/src/com/android/preload/DeviceUtils.java b/tools/preload2/src/com/android/preload/DeviceUtils.java index 72de7b58b0a74..803a7f195a59a 100644 --- a/tools/preload2/src/com/android/preload/DeviceUtils.java +++ b/tools/preload2/src/com/android/preload/DeviceUtils.java @@ -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. }