Log and print poll errors instead of crashing the server
Closes: #228 Approved by: dlrobertson
This commit is contained in:
parent
4d01ee3807
commit
6249f69bd9
|
@ -74,7 +74,12 @@ fn main() {
|
|||
let mut tcp_6970_active = false;
|
||||
loop {
|
||||
let timestamp = Instant::now();
|
||||
iface.poll(&mut sockets, timestamp).expect("poll error");
|
||||
match iface.poll(&mut sockets, timestamp) {
|
||||
Ok(_) => {},
|
||||
Err(e) => {
|
||||
debug!("poll error: {}",e);
|
||||
}
|
||||
}
|
||||
|
||||
// udp:6969: respond "hello"
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue