diff --git a/Server/Server.cs b/Server/Server.cs index 329680c..a96fbeb 100644 --- a/Server/Server.cs +++ b/Server/Server.cs @@ -39,8 +39,8 @@ public class Server { Task.Run(() => HandleSocket(socket)); } - catch { - // super ignore this + catch (Exception e) { + Logger.Error($"Error occured while setting up socket handler? {e}"); } } } @@ -53,9 +53,6 @@ public class Server { try { serverSocket.Shutdown(SocketShutdown.Both); } - catch (Exception) { - // ignore - } finally { serverSocket.Close(); }