don't panic when sending request fails

This commit is contained in:
Miroslav Lichvar 2019-04-05 15:52:23 +02:00
parent 57940ed983
commit 68551393b0
1 changed files with 4 additions and 1 deletions

View File

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