From 09c9db515bfb7c36bc69109cffcaf0946067ddd8 Mon Sep 17 00:00:00 2001 From: Andrey Kuznetsov Date: Sun, 29 Sep 2019 01:20:53 +0300 Subject: [PATCH] fix for #490, related to NikVolf/parity-tokio-ipc#15 --- ipc/src/server.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ipc/src/server.rs b/ipc/src/server.rs index 0bddbb5bd..2592d83c6 100644 --- a/ipc/src/server.rs +++ b/ipc/src/server.rs @@ -161,7 +161,12 @@ impl> ServerBuilder { } // 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) => {