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: