axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asan...@apache.org
Subject svn commit: r750464 - /webservices/axis2/branches/java/1_5/modules/kernel/src/org/apache/axis2/engine/ListenerManager.java
Date Thu, 05 Mar 2009 14:15:19 GMT
Author: asankha
Date: Thu Mar  5 14:15:18 2009
New Revision: 750464

URL: http://svn.apache.org/viewvc?rev=750464&view=rev
Log:
Commit fix for AXIS2-4212 from Hiranya

Modified:
    webservices/axis2/branches/java/1_5/modules/kernel/src/org/apache/axis2/engine/ListenerManager.java

Modified: webservices/axis2/branches/java/1_5/modules/kernel/src/org/apache/axis2/engine/ListenerManager.java
URL: http://svn.apache.org/viewvc/webservices/axis2/branches/java/1_5/modules/kernel/src/org/apache/axis2/engine/ListenerManager.java?rev=750464&r1=750463&r2=750464&view=diff
==============================================================================
--- webservices/axis2/branches/java/1_5/modules/kernel/src/org/apache/axis2/engine/ListenerManager.java
(original)
+++ webservices/axis2/branches/java/1_5/modules/kernel/src/org/apache/axis2/engine/ListenerManager.java
Thu Mar  5 14:15:18 2009
@@ -151,8 +151,8 @@
         }
 
         // Remove the shutdown hook
-        if (shutdownHookThread != null) {
-            Runtime.getRuntime().removeShutdownHook(shutdownHookThread);
+        if (shutdownHookThread != null && shutdownHookThread.getState() != Thread.State.RUNNABLE)
{
+        	Runtime.getRuntime().removeShutdownHook(shutdownHookThread);
             shutdownHookThread = null;
         }
 



Mime
View raw message