speed up stopping the tcp transport (saves 2sec for each @Test method)

This commit is contained in:
Hadrian Zbarcea 2014-03-04 18:10:08 -05:00
parent be94865c44
commit efcef4533e
1 changed files with 1 additions and 1 deletions

View File

@ -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