From b9def9027707558004a913ea79d07ff02314d661 Mon Sep 17 00:00:00 2001 From: "nkl199@yahoo.co.uk" Date: Tue, 31 Mar 2020 13:39:24 +0100 Subject: [PATCH] move location of cb.end() Signed-off-by: nkl199@yahoo.co.uk --- packages/caliper-core/lib/worker/client/caliper-local-client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/caliper-core/lib/worker/client/caliper-local-client.js b/packages/caliper-core/lib/worker/client/caliper-local-client.js index 69ea3b4ca..c06956dc6 100644 --- a/packages/caliper-core/lib/worker/client/caliper-local-client.js +++ b/packages/caliper-core/lib/worker/client/caliper-local-client.js @@ -396,9 +396,9 @@ class CaliperLocalClient { // Clean up await rateController.end(); + await cb.end(); await this.blockchain.releaseContext(this.context); this.clearUpdateInter(txUpdateInter); - await cb.end(); // Return the results and time stamps if (this.resultStats.length > 0) {