From cf5ba12861557758a652169a2a518051136624d6 Mon Sep 17 00:00:00 2001 From: Sanae Date: Fri, 11 Mar 2022 20:29:17 -0600 Subject: [PATCH] One more log --- Server/Server.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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(); }