Skip to content

Commit 514319c

Browse files
committed
[java] Reverting unwanted change
1 parent dfb88b0 commit 514319c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

java/src/org/openqa/selenium/net/PortProber.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ private static int checkPortIsFree(int port) {
100100
socket.bind(new InetSocketAddress("localhost", port));
101101
return socket.getLocalPort();
102102
} catch (IOException e) {
103-
return port;
103+
return -1;
104104
}
105105
}
106106

0 commit comments

Comments
 (0)