forked from auracaster/bumble_mirror
reset parser before raising exception
This commit is contained in:
@@ -139,6 +139,7 @@ class PacketParser:
|
|||||||
packet_type
|
packet_type
|
||||||
) or self.extended_packet_info.get(packet_type)
|
) or self.extended_packet_info.get(packet_type)
|
||||||
if self.packet_info is None:
|
if self.packet_info is None:
|
||||||
|
self.reset()
|
||||||
raise core.InvalidPacketError(
|
raise core.InvalidPacketError(
|
||||||
f'invalid packet type {packet_type}'
|
f'invalid packet type {packet_type}'
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user