mirror of https://github.com/apache/activemq.git
speed up stopping the tcp transport (saves 2sec for each @Test method)
This commit is contained in:
parent
be94865c44
commit
efcef4533e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue