Author: snoopdave
Date: Tue Aug  7 20:32:15 2007
New Revision: 563732

URL: http://svn.apache.org/viewvc?view=rev&rev=563732
Log:
Search doesn't work for me without this change, due to upgrade from Concurrent 
1.3.2 to java.util.concurrent.

Modified:
    
roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/runnable/ThreadManagerImpl.java

Modified: 
roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/runnable/ThreadManagerImpl.java
URL: 
http://svn.apache.org/viewvc/roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/runnable/ThreadManagerImpl.java?view=diff&rev=563732&r1=563731&r2=563732
==============================================================================
--- 
roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/runnable/ThreadManagerImpl.java
 (original)
+++ 
roller/trunk/apps/weblogger/src/java/org/apache/roller/weblogger/business/runnable/ThreadManagerImpl.java
 Tue Aug  7 20:32:15 2007
@@ -126,9 +126,12 @@
             throws InterruptedException {
         Future task = serviceScheduler.submit(runnable);
         
-        // if this task is really meant to be executed within this calling 
thread
-        // then we can add a little code here to loop until it realizes the 
task is done
-        // while(!scheduledTask.isDone())
+        // since this task is really meant to be executed within this calling 
+        // thread, here we can add a little code here to loop until it 
realizes 
+        // the task is done
+        while(!task.isDone()) {
+            Thread.sleep(500);
+        }
     }
     
     


Reply via email to