JAL-4026 always wait 50ms before checking if the calculation worker is still running...
[jalview.git] / test / jalview / gui / AlignViewportTest.java
index e0a18d6..b3c6b2a 100644 (file)
@@ -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());
     }
   }