bitbake: command: Tweak finishAsyncCommand ordering to avoid races

(Bitbake rev: 89435442946767cfe58eedde363802add8f1ab29)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2022-12-29 16:41:06 +00:00
parent 7723baafa6
commit 4895e78234

View File

@@ -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: