don't wait for all futures to resolve before shutdown

This commit is contained in:
Robert Habermeier authored and Gav committed 2018-08-10 13:57:26 +02:00
1 parent 5691ad850b
commit b2451ca6cc
1 file changed
-2
-2
View File
@@ -95,8 +95,6 @@ pub fn run<I, T, W>(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(())