activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r428419 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/broker/TransportStatusDetector.java
Date Thu, 03 Aug 2006 15:00:15 GMT
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);
+        }
     }
 }



Mime
View raw message