From efcef4533e31191f097791e9a99d15a35573c453 Mon Sep 17 00:00:00 2001 From: Hadrian Zbarcea Date: Tue, 4 Mar 2014 18:10:08 -0500 Subject: [PATCH] speed up stopping the tcp transport (saves 2sec for each @Test method) --- .../org/apache/activemq/transport/tcp/TcpTransportServer.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-client/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java b/activemq-client/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java index 6eab645243..65f089bdb4 100755 --- a/activemq-client/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java +++ b/activemq-client/src/main/java/org/apache/activemq/transport/tcp/TcpTransportServer.java @@ -405,10 +405,10 @@ public class TcpTransportServer extends TransportServerThreadSupport implements @Override protected void doStop(ServiceStopper stopper) throws Exception { - super.doStop(stopper); if (serverSocket != null) { serverSocket.close(); } + super.doStop(stopper); } @Override