From c7d059a58f1cc0dfdb92ed963377555566f19317 Mon Sep 17 00:00:00 2001 From: Antsiferov Andrew Date: Thu, 7 Jan 2021 17:52:02 +0300 Subject: [PATCH] Don't terminate socket server on connection reset (#4282) --- server/src/mindustry/server/ServerControl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/mindustry/server/ServerControl.java b/server/src/mindustry/server/ServerControl.java index 553fd6af74..44f0603c5c 100644 --- a/server/src/mindustry/server/ServerControl.java +++ b/server/src/mindustry/server/ServerControl.java @@ -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); }