Skip to content

Commit

Permalink
better exception
Browse files Browse the repository at this point in the history
  • Loading branch information
VISTALL committed Dec 22, 2024
1 parent 4ae7bee commit f2c4a6a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import java.net.ConnectException;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.net.SocketException;
import java.nio.charset.StandardCharsets;
import java.util.concurrent.ForkJoinPool;

Expand Down Expand Up @@ -177,7 +178,7 @@ protected void write(byte[] bytes) throws IOException {
lastException = null;
break;
}
catch (ConnectException c) {
catch (SocketException c) {
lastException = c;
TimeoutUtil.sleep(1000L);
}
Expand Down

0 comments on commit f2c4a6a

Please sign in to comment.