Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
onsails committed Sep 29, 2019
1 parent 97b08da commit cb32618
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion ipc/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,13 @@ 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) {
#[allow(deprecated)]
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 cb32618

Please sign in to comment.