From: Jim Procter Date: Tue, 27 Aug 2013 15:08:17 +0000 (+0100) Subject: JAL-1359 simpler logic for deciding if all threads have finished. X-Git-Tag: Jalview_2_9~223^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8d60f5c3375c9e0deaddf0dd8b9e06ebe3ee0908;p=jalview.git JAL-1359 simpler logic for deciding if all threads have finished. Note: I couldn't reproduce the JAL-1359 bug after rebuilding my JABAWS development server - so trust me on this fix :) --- diff --git a/src/jalview/ws/jws2/Jws2Discoverer.java b/src/jalview/ws/jws2/Jws2Discoverer.java index 8ad14e0..2724d29 100644 --- a/src/jalview/ws/jws2/Jws2Discoverer.java +++ b/src/jalview/ws/jws2/Jws2Discoverer.java @@ -189,7 +189,9 @@ public class Jws2Discoverer implements Runnable, WSMenuEntryProviderI ; for (JabaWsServerQuery squery : qrys) { - finished = finished && !squery.isRunning(); + if (squery.isRunning()){ + finished=false; + } } if (aborted) {