diff --git a/src/upd_loop.rs b/src/upd_loop.rs index adc579a..e5f7ed0 100644 --- a/src/upd_loop.rs +++ b/src/upd_loop.rs @@ -30,6 +30,10 @@ pub fn start_udp_thread(bind: String, stop_receiver: Receiver<()>) -> JoinHandle other => other.unwrap(), }; + if amount == buf.len(){ + warn!("the received package may have been truncated to a length of {}", amount); + } + handle_package(&mut buf[..amount]); } });