diff --git a/mitmproxy-windows/redirector/src/main2.rs b/mitmproxy-windows/redirector/src/main2.rs index f340d271..9a3a29f3 100644 --- a/mitmproxy-windows/redirector/src/main2.rs +++ b/mitmproxy-windows/redirector/src/main2.rs @@ -420,9 +420,7 @@ async fn handle_ipc( } } }, - r = ipc_rx.recv() => { - let Some(packet) = r else { break }; - + Some(packet) = ipc_rx.recv() => { packet.encode(&mut buf.as_mut_slice())?; let len = packet.encoded_len();