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
|
@Override
|
||||||
protected void doStop(ServiceStopper stopper) throws Exception {
|
protected void doStop(ServiceStopper stopper) throws Exception {
|
||||||
super.doStop(stopper);
|
|
||||||
if (serverSocket != null) {
|
if (serverSocket != null) {
|
||||||
serverSocket.close();
|
serverSocket.close();
|
||||||
}
|
}
|
||||||
|
super.doStop(stopper);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue