diff options
Diffstat (limited to 'lib/bb/command.py')
-rw-r--r-- | lib/bb/command.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py index d797fcf93..0cfed0a96 100644 --- a/lib/bb/command.py +++ b/lib/bb/command.py @@ -87,6 +87,9 @@ class Command: def runAsyncCommand(self): try: if self.cooker.state in (bb.cooker.state.error, bb.cooker.state.shutdown, bb.cooker.state.forceshutdown): + # updateCache will trigger a shutdown of the parser + # and then raise BBHandledException triggering an exit + self.cooker.updateCache() return False if self.currentAsyncCommand is not None: (command, options) = self.currentAsyncCommand |