Skip to content

Commit

Permalink
Bugfix when parsing multiple InMemCapture packets
Browse files Browse the repository at this point in the history
  • Loading branch information
KimiNewt committed Sep 8, 2019
1 parent 3e8846f commit 900fe71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pyshark/capture/capture.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def _extract_packet_json_from_data(self, data, got_first_packet=True):

if found_separator:
tag_end += len(found_separator) - end_tag_strip_length
return data[tag_start:tag_end], data[tag_end + 1:]
return data[tag_start:tag_end].strip().strip(b","), data[tag_end + 1:]
return None, data

def _extract_tag_from_data(self, data, tag_name=b"packet"):
Expand Down

0 comments on commit 900fe71

Please sign in to comment.