incubator-sling-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r740817 - /incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java
Date Wed, 04 Feb 2009 18:13:43 GMT
Author: cziegeler
Date: Wed Feb  4 18:13:42 2009
New Revision: 740817

URL: http://svn.apache.org/viewvc?rev=740817&view=rev
Log:
Correctly handle shutdown of job queue

Modified:
    incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java

Modified: incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java
URL: http://svn.apache.org/viewvc/incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java?rev=740817&r1=740816&r2=740817&view=diff
==============================================================================
--- incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java
(original)
+++ incubator/sling/trunk/extensions/event/src/main/java/org/apache/sling/event/impl/JobEventHandler.java
Wed Feb  4 18:13:42 2009
@@ -467,8 +467,8 @@
                                  * @see java.lang.Runnable#run()
                                  */
                                 public void run() {
-                                    logger.info("Starting job queue {}", queueName);
-                                    while ( running ) {
+                                    while ( running && !jq.isFinished() ) {
+                                        logger.info("Starting job queue {}", queueName);
                                         try {
                                             runJobQueue(queueName, jq);
                                         } catch (Throwable t) {



Mime
View raw message