diff --git a/refbox/src/sim_app/mod.rs b/refbox/src/sim_app/mod.rs index 80cc8599..2d774b04 100644 --- a/refbox/src/sim_app/mod.rs +++ b/refbox/src/sim_app/mod.rs @@ -210,7 +210,7 @@ impl Recipe for SnapshotListener { match state.stream.as_mut().unwrap().read(&mut buffer).await { Ok(val) if val == TransmittedData::ENCODED_LEN => {} - Ok(val) if val == 0 => { + Ok(0) => { error!("Sim: TCP connection closed, stopping"); state.stop = true; return Some((Message::Stop, state));