Skip to content

Commit

Permalink
fix for #490, related to paritytech/parity-tokio-ipc#15 (#491)
Browse files Browse the repository at this point in the history
  • Loading branch information
onsails authored and tomusdrw committed Sep 30, 2019
1 parent 97b08da commit 77d7fb6
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 77d7fb6

Please sign in to comment.