We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f8f700 commit ddf6d9fCopy full SHA for ddf6d9f
feo/src/signalling/common/socket/server.rs
@@ -67,7 +67,15 @@ where
67
}
68
69
// There was no readable connection -> poll
70
- self.poll.poll(events, Some(timeout)).unwrap();
+ loop {
71
+ match self.poll.poll(events, Some(timeout)) {
72
+ Err(e) if e.kind() == std::io::ErrorKind::Interrupted => {
73
+ // ignore system interrupts
74
+ }
75
+ Ok(_) => break,
76
+ e => panic!("{e:?}"),
77
78
79
for event in events.iter() {
80
match event.token() {
81
LISTENER_TOKEN => self.accept_connections(),
0 commit comments