[hornetq-commits] JBoss hornetq SVN: r11262 - branches/Branch_2_2_EAP_cluster_clean3/tests/src/org/hornetq/tests/util.

do-not-reply at jboss.org do-not-reply at jboss.org
Wed Aug 31 14:25:27 EDT 2011


Author: clebert.suconic at jboss.com
Date: 2011-08-31 14:25:27 -0400 (Wed, 31 Aug 2011)
New Revision: 11262

Modified:
   branches/Branch_2_2_EAP_cluster_clean3/tests/src/org/hornetq/tests/util/JMSClusteredTestBase.java
Log:
fixing thread leakage

Modified: branches/Branch_2_2_EAP_cluster_clean3/tests/src/org/hornetq/tests/util/JMSClusteredTestBase.java
===================================================================
--- branches/Branch_2_2_EAP_cluster_clean3/tests/src/org/hornetq/tests/util/JMSClusteredTestBase.java	2011-08-31 18:24:06 UTC (rev 11261)
+++ branches/Branch_2_2_EAP_cluster_clean3/tests/src/org/hornetq/tests/util/JMSClusteredTestBase.java	2011-08-31 18:25:27 UTC (rev 11262)
@@ -230,6 +230,8 @@
          log.warn("Can't stop server2", e);
       }
       
+      Thread.sleep(500);
+      
       ((HornetQConnectionFactory)cf1).close();
       
       ((HornetQConnectionFactory)cf2).close();
@@ -252,9 +254,9 @@
       }
       catch (Throwable e)
       {
-         log.warn("Can't stop server2", e);
+         log.warn("Can't stop server1", e);
       }
-
+ 
       server1 = null;
 
       jmsServer1 = null;



More information about the hornetq-commits mailing list