diff --git a/libafl/src/events/tcp.rs b/libafl/src/events/tcp.rs index 887a985071..b484bfa279 100644 --- a/libafl/src/events/tcp.rs +++ b/libafl/src/events/tcp.rs @@ -171,7 +171,7 @@ where spawn(async move { // In a loop, read data from the socket and write the data back. loop { - let buf: Vec = rx_inner.recv().await.expect("Could not receive"); + let buf: Vec = rx_inner.recv().await.unwrap_or(vec![]); #[cfg(feature = "tcp_debug")] println!("{buf:?}");