From b03d06604803dc2e3f0a69c048d0b60557005bb5 Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Fri, 10 Aug 2018 13:10:06 +0200 Subject: [PATCH] don't wait for all futures to resolve before shutdown --- 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 b2da24ee10394..1a2e2f4850bab 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(())