diff --git a/CHANGELOG.md b/CHANGELOG.md index 3b16a4e7..6f480611 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ All Sniffnet releases with the relative changes are documented in this file. ## [UNRELEASED] - Send remote notifications via webhook ([#991](https://github.com/GyulyVGC/sniffnet/pull/991) — fixes [#841](https://github.com/GyulyVGC/sniffnet/issues/841)) +- Pause and resume packet captures ([#992](https://github.com/GyulyVGC/sniffnet/pull/992) — fixes [#551](https://github.com/GyulyVGC/sniffnet/issues/551)) - Added Czech translation 🇨🇿 ([#960](https://github.com/GyulyVGC/sniffnet/pull/960)) - Improve update checks using `semver` ([#891](https://github.com/GyulyVGC/sniffnet/pull/891)) - Build the app also for Windows ARM64 (fixes [#988](https://github.com/GyulyVGC/sniffnet/issues/988)) diff --git a/src/networking/parse_packets.rs b/src/networking/parse_packets.rs index 4548d23b..03e5f257 100644 --- a/src/networking/parse_packets.rs +++ b/src/networking/parse_packets.rs @@ -45,7 +45,7 @@ pub fn parse_packets( tx: &Sender, freeze_rxs: (Receiver<()>, Receiver<()>), ) { - let (mut freeze_rx, mut freeze_rx2) = freeze_rxs; + let (mut freeze_rx, mut freeze_rx_2) = freeze_rxs; let my_link_type = capture_context.my_link_type(); let (cap, mut savefile) = capture_context.consume(); @@ -61,7 +61,7 @@ pub fn parse_packets( let (pcap_tx, pcap_rx) = std::sync::mpsc::sync_channel(10_000); let _ = thread::Builder::new() .name("thread_packet_stream".to_string()) - .spawn(move || packet_stream(cap, &pcap_tx, &mut freeze_rx2, &filters)) + .spawn(move || packet_stream(cap, &pcap_tx, &mut freeze_rx_2, &filters)) .log_err(location!()); loop {