From f2c19dce6e8cc09621f73a2cac8260da4919a532 Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Fri, 10 Aug 2018 13:56:54 +0200 Subject: [PATCH] don't wait for all futures to resolve before shutdown (#536) --- polkadot/cli/src/lib.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/polkadot/cli/src/lib.rs b/polkadot/cli/src/lib.rs index b2da24ee10..1a2e2f4850 100644 --- a/polkadot/cli/src/lib.rs +++ b/polkadot/cli/src/lib.rs @@ -95,8 +95,6 @@ pub fn run(args: I, worker: W, version: cli::VersionInfo) -> error::Res true => run_until_exit(&mut runtime, service::new_light(config, executor)?, worker)?, false => run_until_exit(&mut runtime, service::new_full(config, executor)?, worker)?, } - // TODO: hard exit if this stalls? - runtime.shutdown_on_idle().wait().expect("failed to shut down event loop"); } } Ok(())