don't panic when sending request fails
This commit is contained in:
parent
57940ed983
commit
68551393b0
@ -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…
Reference in New Issue
Block a user