Skip to content

Commit

Permalink
fix: misbehaved in try block
Browse files Browse the repository at this point in the history
Signed-off-by: pengyu <[email protected]>
  • Loading branch information
py023 committed Jul 31, 2024
1 parent 7daa579 commit 204433f
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,8 @@ public static int findValidPort() {
port = socket.getLocalPort();
try (DatagramSocket datagramSocket = new DatagramSocket(port)) {
datagramSocket.setReuseAddress(true);
break;
} catch (SocketException e) {
e.printStackTrace();
continue;
}

CountDownLatch latch = new CountDownLatch(1);
Expand Down

0 comments on commit 204433f

Please sign in to comment.