fix: Fixes stuck connections (#1708)

This commit is contained in:
Kamron Batman 2024-04-03 08:14:41 -07:00 committed by GitHub
parent 39215935cf
commit 183f6fa4ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 136 additions and 120 deletions

View file

@ -442,8 +442,6 @@ public static class IncomingAccountPackets
public static void AccountLogin(NetState state, SpanReader reader)
{
// TODO: Throttle Connection
if (state.SentFirstPacket)
{
state.Disconnect("Duplicate account login packet sent.");
@ -478,6 +476,7 @@ public static class IncomingAccountPackets
}
else
{
state.Account = null;
AccountLogin_ReplyRej(state, accountLoginEventArgs.RejectReason);
}
}