Browse Source

don't panic when sending request fails

master
Miroslav Lichvar 3 years ago
parent
commit
68551393b0
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/main.rs

+ 4
- 1
src/main.rs View File

@ -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