[jsword-devel] Job and finished state

Chris Burrell chris at burrell.me.uk
Thu Jul 5 08:05:49 MST 2012


Hello

Should a job report a workStateChanged when it is done? I believe at the
moment it only fires it on cancellation. If so, would this do the trick:

index 2dccb54..82cd409 100644
--- a/src/main/java/org/crosswire/common/progress/Job.java
+++ b/src/main/java/org/crosswire/common/progress/Job.java
@@ -283,6 +283,7 @@ public final class Job implements Progress {
         }

         // Report that the job is done.
+        fireStateChanged();
         JobManager.fireWorkProgressed(this);

         synchronized (this) {

Cheers
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.crosswire.org/pipermail/jsword-devel/attachments/20120705/1a8ee5a9/attachment.html>


More information about the jsword-devel mailing list