roller-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agillil...@apache.org
Subject svn commit: r372936 - /incubator/roller/trunk/src/org/roller/business/runnable/WorkerThread.java
Date Fri, 27 Jan 2006 18:16:45 GMT
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();
         }
         
     }



Mime
View raw message