You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@roller.apache.org by ag...@apache.org on 2006/01/27 19:16:45 UTC

svn commit: r372936 - /incubator/roller/trunk/src/org/roller/business/runnable/WorkerThread.java

Author: agilliland
Date: Fri Jan 27 10:16:43 2006
New Revision: 372936

URL: http://svn.apache.org/viewcvs?rev=372936&view=rev
Log:
make sure to Roller.release() after thread execution.


Modified:
    incubator/roller/trunk/src/org/roller/business/runnable/WorkerThread.java

Modified: incubator/roller/trunk/src/org/roller/business/runnable/WorkerThread.java
URL: http://svn.apache.org/viewcvs/incubator/roller/trunk/src/org/roller/business/runnable/WorkerThread.java?rev=372936&r1=372935&r2=372936&view=diff
==============================================================================
--- incubator/roller/trunk/src/org/roller/business/runnable/WorkerThread.java (original)
+++ incubator/roller/trunk/src/org/roller/business/runnable/WorkerThread.java Fri Jan 27 10:16:43 2006
@@ -8,6 +8,8 @@
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
+import org.roller.model.Roller;
+import org.roller.model.RollerFactory;
 
 
 /**
@@ -58,6 +60,10 @@
                         "Worker = "+this.id+", "+
                         "Job = "+this.job.getClass().getName(), t);
             }
+            
+            // since this is a thread we have to make sure that we tidy up ourselves
+            Roller roller = RollerFactory.getRoller();
+            roller.release();
         }
         
     }