Skip to content

Commit

Permalink
Merge pull request #666 from Vladimir-Chan/master
Browse files Browse the repository at this point in the history
Fix issue #648 which setting only_summaries to True lead to a bug
  • Loading branch information
KimiNewt authored Jul 20, 2024
2 parents 5ccf6a7 + 80413a7 commit 5bef368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyshark/tshark/output_parser/tshark_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, parse_summaries=False):
self._psml_structure = None

async def get_packets_from_stream(self, stream, existing_data, got_first_packet=True):
if self._parse_summaries:
if self._parse_summaries and self._psml_structure is None:
existing_data = await self._get_psml_struct(stream)
return await super().get_packets_from_stream(stream, existing_data, got_first_packet=got_first_packet)

Expand Down

0 comments on commit 5bef368

Please sign in to comment.