Fix: catch socket timeout
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user