Fixes awaiting seed for < v6 clients (#589)

Fixes an issue with awaiting for a seed that matches an informational packet.
Thanks @andreakarasho!
This commit is contained in:
Kamron Batman 2021-05-05 11:47:54 -07:00 committed by GitHub
parent 8306db9e91
commit f0969223f7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -571,7 +571,7 @@ namespace Server.Network
int packetLength = length;
// These can arrive at any time and are only informational
if (IncomingPackets.IsInfoPacket(packetId))
if (_protocolState != ProtocolState.AwaitingSeed && IncomingPackets.IsInfoPacket(packetId))
{
_parserState = ParserState.ProcessingPacket;
_parserState = HandlePacket(packetReader, packetId, length, out packetLength);