From 4895e78234afb9dc4d41fd5c26e064efeabbb7b6 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 29 Dec 2022 16:41:06 +0000 Subject: [PATCH] bitbake: command: Tweak finishAsyncCommand ordering to avoid races (Bitbake rev: 89435442946767cfe58eedde363802add8f1ab29) Signed-off-by: Richard Purdie --- bitbake/lib/bb/command.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 0208e30ec4..cbac07f516 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py @@ -152,8 +152,8 @@ class Command: bb.event.fire(CommandExit(code), self.cooker.data) else: bb.event.fire(CommandCompleted(), self.cooker.data) - self.currentAsyncCommand = None self.cooker.finishcommand() + self.currentAsyncCommand = None def reset(self): if self.remotedatastores: