From 59f57072ac7a74aa4dd5ebfb9e4e1629e112a646 Mon Sep 17 00:00:00 2001 From: Sean McArthur Date: Thu, 3 Jan 2019 09:36:54 -0800 Subject: [PATCH] Remove timeout waiting for runtime thread to start --- src/client.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/client.rs b/src/client.rs index af99a33..8235dfc 100644 --- a/src/client.rs +++ b/src/client.rs @@ -500,13 +500,11 @@ impl ClientHandle { .expect("runtime unexpected error"); })); - // Wait some seconds for the background thread to be spawned. - // More than that and something bad is up! - match wait::timeout(spawn_rx, Some(Duration::from_secs(10))) { + // Wait for the runtime thread to start up... + match spawn_rx.wait() { Ok(Ok(())) => (), Ok(Err(err)) => return Err(err), - Err(wait::Waited::Err(_/*mpsc::Canceled*/)) | - Err(wait::Waited::TimedOut) => return Err(::error::runtime_startup()), + Err(_canceled) => return Err(::error::runtime_startup()), }