From 40f1d22cd883bedfbfedd235d5556db5a824c891 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= Date: Mon, 11 Nov 2019 16:35:47 +0100 Subject: [PATCH] cli: fix node shutdown (#568) --- polkadot/cli/src/lib.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/polkadot/cli/src/lib.rs b/polkadot/cli/src/lib.rs index c5b36e05c1..aa3cab1b84 100644 --- a/polkadot/cli/src/lib.rs +++ b/polkadot/cli/src/lib.rs @@ -158,5 +158,8 @@ fn run_until_exit( let _ = runtime.block_on(service.select(work)); exit_send.fire(); + // TODO [andre]: timeout this future substrate/#1318 + let _ = runtime.shutdown_on_idle().wait(); + Ok(()) }