Skip to content

Commit

Permalink
Merge pull request #217 from jsturtevant/fix-mac-os-bug
Browse files Browse the repository at this point in the history
Handle OS Interruptions
  • Loading branch information
wllenyj authored Jan 25, 2024
2 parents 6fe7d39 + 693f4c5 commit 6f12d9c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sync/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,10 @@ impl Server {
continue;
}
Ok(Some(conn)) => Arc::new(conn),
Err(e) if e.kind() == std::io::ErrorKind::Interrupted => {
error!("got interruption {:?}. Continue...", e);
continue;
}
Err(e) => {
error!("listener accept got {:?}", e);
break;
Expand Down

0 comments on commit 6f12d9c

Please sign in to comment.