set PCAP immediate mode to false (otherwise timeout is ignored on some platform)

This commit is contained in:
GyulyVGC
2025-09-01 16:22:54 +02:00
parent aafe1f883e
commit 7d90920d17

View File

@@ -135,7 +135,7 @@ fn from_source(source: &CaptureSource, pcap_out_path: Option<&String>) -> Result
} else {
200 // limit stored packets slice dimension (to keep more in the buffer)
})
.immediate_mode(true) // parse packets ASAP
.immediate_mode(false)
.timeout(150) // ensure UI is updated even if no packets are captured
.open()?;
Ok(Self::Live(cap))