Fix: catch socket timeout

This commit is contained in:
Laurent Clouet
2025-07-17 13:17:54 +02:00
parent 287241f03b
commit e23a6d565c

View File

@@ -678,7 +678,7 @@ public class ServerRequest extends Thread {
return ServerCode.UNKNOWN;
}
catch (ConnectException e) {
catch (SocketTimeoutException | ConnectException e) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);