[mule-scm] [mule][25302] branches/mule-3.x/modules/launcher/src/main/java/org/mule/ module/launcher/MuleDeploymentService.java: Waiting for appDirMonitorTimer finalization on MuleDeploymentService#stop (using timeout :) )

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[mule-scm] [mule][25302] branches/mule-3.x/modules/launcher/src/main/java/org/mule/ module/launcher/MuleDeploymentService.java: Waiting for appDirMonitorTimer finalization on MuleDeploymentService#stop (using timeout :) )

pablo.kraan
[mule][25302] branches/mule-3.x/modules/launcher/src/main/java/org/mule/module/launcher/MuleDeploymentService.java: Waiting for appDirMonitorTimer finalization on MuleDeploymentService#stop (using timeout :) )
Revision
25302
Author
pablo.kraan
Date
2013-02-22 10:06:41 -0600 (Fri, 22 Feb 2013)

Log Message

Waiting for appDirMonitorTimer finalization on MuleDeploymentService#stop (using timeout :) )

Modified Paths

Diff

Modified: branches/mule-3.x/modules/launcher/src/main/java/org/mule/module/launcher/MuleDeploymentService.java (25301 => 25302)


--- branches/mule-3.x/modules/launcher/src/main/java/org/mule/module/launcher/MuleDeploymentService.java	2013-02-22 15:22:19 UTC (rev 25301)
+++ branches/mule-3.x/modules/launcher/src/main/java/org/mule/module/launcher/MuleDeploymentService.java	2013-02-22 16:06:41 UTC (rev 25302)
@@ -276,17 +276,14 @@
         if (appDirMonitorTimer != null)
         {
             appDirMonitorTimer.shutdown();
-            while (!appDirMonitorTimer.isTerminated())
+            try
             {
-                try
-                {
-                    Thread.sleep(50);
-                }
-                catch (InterruptedException e)
-                {
-                    throw new RuntimeException(e);
-                }
+                appDirMonitorTimer.awaitTermination(DEFAULT_CHANGES_CHECK_INTERVAL_MS, TimeUnit.MILLISECONDS);
             }
+            catch (InterruptedException e)
+            {
+                throw new RuntimeException(e);
+            }
         }
     }
 

To unsubscribe from this list please visit:

http://xircles.codehaus.org/manage_email