(JAL-961) use simplified notification logic to test if calculation can start
authorjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 27 Oct 2011 11:21:51 +0000 (12:21 +0100)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Thu, 27 Oct 2011 11:21:51 +0000 (12:21 +0100)
src/jalview/workers/ConservationThread.java

index 4afaea7..bd025a5 100644 (file)
@@ -41,7 +41,7 @@ public class ConservationThread extends AlignCalcWorker implements AlignCalcWork
     {
       calcMan.notifyStart(this); // updatingConservation = true;
 
-      while (calcMan.alreadyDoing(this)) //UPDATING_CONSERVATION)
+      while (!calcMan.notifyWorking(this)) 
       {
         try
         {
@@ -55,7 +55,6 @@ public class ConservationThread extends AlignCalcWorker implements AlignCalcWork
           ex.printStackTrace();
         }
       }
-      calcMan.notifyWorking(this);
       if (alignViewport.isClosed()) {
         abortAndDestroy();
       }