Skip to content
Snippets Groups Projects
Commit f8d83c9d authored by Pierre LALET's avatar Pierre LALET
Browse files

wrpcap() / (Raw)PcapWriter: flush fd even with non-gz files

parent 8d15ff5a
No related branches found
No related tags found
No related merge requests found
......@@ -914,7 +914,7 @@ class RawPcapWriter:
usec = int(round((t-it)*1000000))
self.f.write(struct.pack(self.endian+"IIII", sec, usec, caplen, wirelen))
self.f.write(packet)
if self.gz and self.sync:
if self.sync:
self.f.flush()
def flush(self):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment