mirror of
https://github.com/Sanae6/SmoOnlineServer.git
synced 2024-11-25 20:55:18 +00:00
One more log
This commit is contained in:
parent
ebf5080a00
commit
cf5ba12861
1 changed files with 2 additions and 5 deletions
|
@ -39,8 +39,8 @@ public class Server {
|
||||||
|
|
||||||
Task.Run(() => HandleSocket(socket));
|
Task.Run(() => HandleSocket(socket));
|
||||||
}
|
}
|
||||||
catch {
|
catch (Exception e) {
|
||||||
// super ignore this
|
Logger.Error($"Error occured while setting up socket handler? {e}");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -53,9 +53,6 @@ public class Server {
|
||||||
try {
|
try {
|
||||||
serverSocket.Shutdown(SocketShutdown.Both);
|
serverSocket.Shutdown(SocketShutdown.Both);
|
||||||
}
|
}
|
||||||
catch (Exception) {
|
|
||||||
// ignore
|
|
||||||
}
|
|
||||||
finally {
|
finally {
|
||||||
serverSocket.Close();
|
serverSocket.Close();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue