bitbake: cooker: Ensure commands clean up any parser processes

When finishing a command, we need to ensure any parsing processes that may have
been started are cleaned up before we reset the cooker state.

(Bitbake rev: 6569ab64bea35de21acc89053ba76e2828163f3f)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2022-12-28 23:52:49 +00:00
parent 4895e78234
commit ff2d778f6d

View File

@@ -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):