diff options
-rw-r--r-- | lib/bb/cooker.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 6a1b649f7..479dc5a11 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -1361,8 +1361,10 @@ class BBCooker: return False if not retval: - bb.event.fire(bb.event.BuildCompleted(len(rq.rqdata.runtaskentries), buildname, targets, failures, interrupted), self.data) - self.command.finishAsyncCommand(msg) + try: + bb.event.fire(bb.event.BuildCompleted(len(rq.rqdata.runtaskentries), buildname, targets, failures, interrupted), self.data) + finally: + self.command.finishAsyncCommand(msg) return False if retval is True: return True |