From bdcf3d52a75a7959339221a24cdeede437381876 Mon Sep 17 00:00:00 2001 From: Cecile Tonglet Date: Wed, 1 Jul 2020 11:40:45 +0200 Subject: [PATCH 1/2] Initial commit Forked at: 4919c808cb75618d95762944aa6f5664c1aa3b59 Parent branch: origin/master From a46625af1993b42f7c7d811008c62c64f2378942 Mon Sep 17 00:00:00 2001 From: Cecile Tonglet Date: Wed, 1 Jul 2020 11:44:33 +0200 Subject: [PATCH 2/2] Drop the tokio runtime before the task_manager The tokio runtime must be dropped before the task_manager. Otherwise the objects the task_manager keep alive are dropped before the tasks are finished. --- client/cli/src/runner.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/cli/src/runner.rs b/client/cli/src/runner.rs index fcc869dc87069..4d2d0ffbb060b 100644 --- a/client/cli/src/runner.rs +++ b/client/cli/src/runner.rs @@ -210,7 +210,7 @@ impl Runner { self.tokio_runtime.block_on(main(task_manager.future().fuse())) .map_err(|e| e.to_string())?; task_manager.terminate(); - drop(task_manager); + drop(self.tokio_runtime); Ok(()) }