From: Jim Procter Date: Thu, 9 Jun 2022 09:38:44 +0000 (+0100) Subject: JAL-4026 always wait 50ms before checking if the calculation worker is still running... X-Git-Tag: Release_2_11_2_6~57 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=986834f1db7bd344d067bb450970578acb32c10f;p=jalview.git JAL-4026 always wait 50ms before checking if the calculation worker is still running so it has time to start. --- diff --git a/test/jalview/gui/AlignViewportTest.java b/test/jalview/gui/AlignViewportTest.java index e0a18d6..b3c6b2a 100644 --- a/test/jalview/gui/AlignViewportTest.java +++ b/test/jalview/gui/AlignViewportTest.java @@ -328,7 +328,7 @@ public class AlignViewportTest { synchronized (this) { - while (viewport.getCalcManager().isWorking()) + do { try { @@ -336,7 +336,7 @@ public class AlignViewportTest } catch (InterruptedException e) { } - } + } while (viewport.getCalcManager().isWorking()); } }