cli: fix node shutdown (#568)

This commit is contained in:
André Silva
2019-11-11 16:35:47 +01:00
committed by Bastian Köcher
parent 663ff3db91
commit 40f1d22cd8
+3
View File
@@ -158,5 +158,8 @@ fn run_until_exit<T, SC, B, CE, W>(
let _ = runtime.block_on(service.select(work));
exit_send.fire();
// TODO [andre]: timeout this future substrate/#1318
let _ = runtime.shutdown_on_idle().wait();
Ok(())
}