mirror of
https://github.com/google/bumble.git
synced 2026-04-18 00:45:32 +00:00
reset parser before raising exception
This commit is contained in:
@@ -139,6 +139,7 @@ class PacketParser:
|
||||
packet_type
|
||||
) or self.extended_packet_info.get(packet_type)
|
||||
if self.packet_info is None:
|
||||
self.reset()
|
||||
raise core.InvalidPacketError(
|
||||
f'invalid packet type {packet_type}'
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user