JAL-4026 always wait 50ms before checking if the calculation worker is still running...
authorJim Procter <j.procter@dundee.ac.uk>
Thu, 9 Jun 2022 09:38:44 +0000 (10:38 +0100)
committerJim Procter <j.procter@dundee.ac.uk>
Thu, 9 Jun 2022 10:03:09 +0000 (11:03 +0100)
test/jalview/gui/AlignViewportTest.java

index e0a18d6..b3c6b2a 100644 (file)
@@ -328,7 +328,7 @@ public class AlignViewportTest
   {
     synchronized (this)
     {
   {
     synchronized (this)
     {
-      while (viewport.getCalcManager().isWorking())
+      do
       {
         try
         {
       {
         try
         {
@@ -336,7 +336,7 @@ public class AlignViewportTest
         } catch (InterruptedException e)
         {
         }
         } catch (InterruptedException e)
         {
         }
-      }
+      } while (viewport.getCalcManager().isWorking());
     }
   }
 
     }
   }