geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r405449 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/PingThread.java
Date Tue, 09 May 2006 15:01:28 GMT
Author: sppatel
Date: Tue May  9 08:01:27 2006
New Revision: 405449

URL: http://svn.apache.org/viewcvs?rev=405449&view=rev
Log:
fix dangling ping thread if server start inturuupted

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/PingThread.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/PingThread.java
URL: http://svn.apache.org/viewcvs/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/PingThread.java?rev=405449&r1=405448&r2=405449&view=diff
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/PingThread.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/PingThread.java
Tue May  9 08:01:27 2006
@@ -56,6 +56,9 @@
 		}
 
 		for (int tries = MAX_PINGS; tries > 0; tries--) {
+			
+			if(server.getServerState() == IServer.STATE_STOPPED) 
+				interrupt();
 
 			ClassLoader old = Thread.currentThread().getContextClassLoader();
 			try {



Mime
View raw message