Remove timeout waiting for runtime thread to start
This commit is contained in:
		| @@ -500,13 +500,11 @@ impl ClientHandle { | |||||||
|                 .expect("runtime unexpected error"); |                 .expect("runtime unexpected error"); | ||||||
|         })); |         })); | ||||||
|  |  | ||||||
|         // Wait some seconds for the background thread to be spawned. |         // Wait for the runtime thread to start up... | ||||||
|         // More than that and something bad is up! |         match spawn_rx.wait() { | ||||||
|         match wait::timeout(spawn_rx, Some(Duration::from_secs(10))) { |  | ||||||
|             Ok(Ok(())) => (), |             Ok(Ok(())) => (), | ||||||
|             Ok(Err(err)) => return Err(err), |             Ok(Err(err)) => return Err(err), | ||||||
|             Err(wait::Waited::Err(_/*mpsc::Canceled*/)) | |             Err(_canceled) => return Err(::error::runtime_startup()), | ||||||
|             Err(wait::Waited::TimedOut) => return Err(::error::runtime_startup()), |  | ||||||
|         } |         } | ||||||
|  |  | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user