mirror of https://github.com/SeanOMik/libki.git
net: Fix small bug in PacketHeader
This prevented on_invalid_packet from being called
This commit is contained in:
parent
e62f3e7647
commit
88f98fd84c
|
@ -51,7 +51,7 @@ namespace net
|
|||
if (istream.fail())
|
||||
throw parse_error("Not enough data was available to read packet header. (m_opcode)");
|
||||
istream.ignore(2);
|
||||
if (istream.fail())
|
||||
if (istream.eof())
|
||||
throw parse_error("Not enough data was available to read packet header. (ignored bytes)");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue