Skip to content

Commit 5bef368

Browse files
authored
Merge pull request #666 from Vladimir-Chan/master
Fix issue #648 which setting only_summaries to True lead to a bug
2 parents 5ccf6a7 + 80413a7 commit 5bef368

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pyshark/tshark/output_parser/tshark_xml.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, parse_summaries=False):
2222
self._psml_structure = None
2323

2424
async def get_packets_from_stream(self, stream, existing_data, got_first_packet=True):
25-
if self._parse_summaries:
25+
if self._parse_summaries and self._psml_structure is None:
2626
existing_data = await self._get_psml_struct(stream)
2727
return await super().get_packets_from_stream(stream, existing_data, got_first_packet=got_first_packet)
2828

0 commit comments

Comments
 (0)