Skip to content

Commit 6f12d9c

Browse files
authored
Merge pull request #217 from jsturtevant/fix-mac-os-bug
Handle OS Interruptions
2 parents 6fe7d39 + 693f4c5 commit 6f12d9c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/sync/server.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -363,6 +363,10 @@ impl Server {
363363
continue;
364364
}
365365
Ok(Some(conn)) => Arc::new(conn),
366+
Err(e) if e.kind() == std::io::ErrorKind::Interrupted => {
367+
error!("got interruption {:?}. Continue...", e);
368+
continue;
369+
}
366370
Err(e) => {
367371
error!("listener accept got {:?}", e);
368372
break;

0 commit comments

Comments
 (0)