From eecf6cfb1c649ad61c1fd7c517e4fac8ba7bca3d Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Mon, 18 Dec 2023 20:29:12 +0100 Subject: [PATCH] fixup --- mitmproxy-windows/redirector/src/main2.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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();