Don't terminate socket server on connection reset (#4282)

This commit is contained in:
Antsiferov Andrew
2021-01-07 17:52:02 +03:00
committed by GitHub
parent c420ad1a16
commit c7d059a58f

View File

@ -1045,7 +1045,7 @@ public class ServerControl implements ApplicationListener{
}catch(BindException b){
err("Command input socket already in use. Is another instance of the server running?");
}catch(IOException e){
if(!e.getMessage().equals("Socket closed")){
if(!e.getMessage().equals("Socket closed") && !e.getMessage().equals("Connection reset")){
err("Terminating socket server.");
err(e);
}