summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/bb/cooker.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index a900b07a8..8e6d91bc5 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1286,7 +1286,7 @@ class BBCooker:
if self.state == state.running:
return
- if self.state in (state.shutdown, state.forceshutdown):
+ if self.state in (state.shutdown, state.forceshutdown, state.error):
if hasattr(self.parser, 'shutdown'):
self.parser.shutdown(clean=False, force = True)
raise bb.BBHandledException()