Browse Source

don't panic when sending request fails

master
Miroslav Lichvar 4 years ago
parent
commit
68551393b0
  1. 5
      src/main.rs

5
src/main.rs

@ -367,7 +367,10 @@ impl NtpServer { @@ -367,7 +367,10 @@ impl NtpServer {
println!("Client sent {:?}", request);
}
},
Err(e) => panic!("Client failed to send packet: {}", e)
Err(e) => {
println!("Client failed to send packet: {}", e);
return;
}
}
loop {

Loading…
Cancel
Save