diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 7e0d6b47bf..adc232e288 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py @@ -1768,6 +1768,9 @@ class BBCooker: self.parser.final_cleanup() def finishcommand(self): + if hasattr(self.parser, 'shutdown'): + self.parser.shutdown(clean=False) + self.parser.final_cleanup() self.state = state.initial def reset(self):