Author: jstrachan
Date: Thu Aug  3 08:00:14 2006
New Revision: 428419

URL: http://svn.apache.org/viewvc?rev=428419&view=rev
Log:
lets wait a little for the background thread to shut first so that threads tend 
to shut down nicely

Modified:
    
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportStatusDetector.java

Modified: 
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportStatusDetector.java
URL: 
http://svn.apache.org/viewvc/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportStatusDetector.java?rev=428419&r1=428418&r2=428419&view=diff
==============================================================================
--- 
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportStatusDetector.java
 (original)
+++ 
incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportStatusDetector.java
 Thu Aug  3 08:00:14 2006
@@ -112,5 +112,8 @@
     }
     public void stop() throws Exception{
         started.set(false);
+        if (runner != null) {
+            runner.join(getSweepInterval() * 5);
+        }
     }
 }


Reply via email to