fix PortFinder issue #5466 (#5467)

This commit is contained in:
Alexander Korablev 2018-03-06 03:58:49 +03:00 committed by Jonathan Wei
parent ba3dbf2a42
commit 8a51800693
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ import io.druid.java.util.common.ISE;
import io.druid.java.util.common.Pair;
import java.io.IOException;
import java.net.BindException;
import java.net.ServerSocket;
import java.net.SocketException;
import java.util.Set;
public class PortFinder
@ -45,7 +45,7 @@ public class PortFinder
new ServerSocket(portNum).close();
return true;
}
catch (BindException be) {
catch (SocketException se) {
return false;
}
catch (IOException e) {