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

Commit f2a9933f authored by Andreas Gampe's avatar Andreas Gampe
Browse files

Preload2: Fix object to sync on

When moving to sync on the right objects, these waits() have been
forgotten.

Change-Id: I61b0d3c5cc41b7f46fbdd3099ec44221e653001a
parent b97cfe80
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -285,7 +285,7 @@ public class DeviceUtils {


              if (device == null) {
              if (device == null) {
                  try {
                  try {
                      wait(timeout);
                      wfdl.wait(timeout);
                  } catch (InterruptedException e) {
                  } catch (InterruptedException e) {
                      // Ignore spurious wakeups.
                      // Ignore spurious wakeups.
                  }
                  }
@@ -304,7 +304,7 @@ public class DeviceUtils {


              if (!device.hasClients()) {
              if (!device.hasClients()) {
                  try {
                  try {
                      wait(timeout);
                      wfcl.wait(timeout);
                  } catch (InterruptedException e) {
                  } catch (InterruptedException e) {
                      // Ignore spurious wakeups.
                      // Ignore spurious wakeups.
                  }
                  }