fix(network): Removes error messages for socket exceptions (#503)

This commit is contained in:
Kamron Batman 2021-02-09 10:37:38 -08:00 committed by GitHub
parent 6a80dfea00
commit b8a625dcd3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 7 deletions

View file

@ -999,14 +999,12 @@ namespace Server.Network
}
catch (SocketException ex)
{
// Socket disconnected by client
if (ex.ErrorCode != 54)
{
#if DEBUG
Console.WriteLine(ex);
#endif
if (ex.ErrorCode != 54 && ex.ErrorCode != 89 && ex.ErrorCode != 995)
{
Console.WriteLine(ex);
}
#endif
Disconnect(string.Empty);
}
catch (Exception ex)

View file

@ -518,7 +518,7 @@ namespace Server.Network
private static void AccountLogin_ReplyRej(this NetState state, ALRReason reason)
{
state.SendAccountLoginRejected(reason);
state.Disconnect("Account login rejected by AccountLogin packet handler.");
state.Disconnect($"Account login rejected due to {reason}");
}
private class LoginTimer : Timer