We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a4d0e0 commit 16311f8Copy full SHA for 16311f8
src/event/server.rs
@@ -73,7 +73,11 @@ impl Server {
73
pub fn run(&mut self) -> Result<()> {
74
let mut events = Events::with_capacity(10);
75
loop {
76
- self.poll.poll(&mut events, None)?;
+ match self.poll.poll(&mut events, None) {
77
+ Ok(()) => (),
78
+ Err(e) if e.kind() == ErrorKind::Interrupted => continue,
79
+ Err(e) => return Err(e),
80
+ }
81
for event in &events {
82
if !event.is_readable() { continue }
83
match event.token() {
0 commit comments