Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
onsails committed Sep 28, 2019
1 parent 97b08da commit 09c9db5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ipc/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,12 @@ impl<M: Metadata, S: Middleware<M>> ServerBuilder<M, S> {
}

// Make sure to construct Handle::default() inside Tokio runtime
let reactor = reactor.unwrap_or_else(Handle::default);
let reactor = if (cfg!(windows)) {
reactor.unwrap_or_else(Handle::current)
} else {
reactor.unwrap_or_else(Handle::default)
};

let connections = match endpoint.incoming(&reactor) {
Ok(connections) => connections,
Err(e) => {
Expand Down

0 comments on commit 09c9db5

Please sign in to comment.