fix(network): Removes error messages for socket exceptions (#503)
This commit is contained in:
parent
6a80dfea00
commit
b8a625dcd3
2 changed files with 5 additions and 7 deletions
|
|
@ -999,14 +999,12 @@ namespace Server.Network
|
||||||
}
|
}
|
||||||
catch (SocketException ex)
|
catch (SocketException ex)
|
||||||
{
|
{
|
||||||
// Socket disconnected by client
|
|
||||||
if (ex.ErrorCode != 54)
|
|
||||||
{
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
Console.WriteLine(ex);
|
if (ex.ErrorCode != 54 && ex.ErrorCode != 89 && ex.ErrorCode != 995)
|
||||||
#endif
|
{
|
||||||
|
Console.WriteLine(ex);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
Disconnect(string.Empty);
|
Disconnect(string.Empty);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
|
||||||
|
|
@ -518,7 +518,7 @@ namespace Server.Network
|
||||||
private static void AccountLogin_ReplyRej(this NetState state, ALRReason reason)
|
private static void AccountLogin_ReplyRej(this NetState state, ALRReason reason)
|
||||||
{
|
{
|
||||||
state.SendAccountLoginRejected(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
|
private class LoginTimer : Timer
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue