From 8f2d690428de8934868b406b79c4699a8ebe902c Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Fri, 4 Sep 2020 15:53:41 +0100 Subject: cooker: Ensure parser replacement calls parser final_cleanup This could potentialy account for some of the missing thread cleanup we're seeing. Signed-off-by: Richard Purdie --- lib/bb/cooker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index a85e3587f..eb0ed7878 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -1563,6 +1563,7 @@ class BBCooker: if self.state in (state.shutdown, state.forceshutdown, state.error): if hasattr(self.parser, 'shutdown'): self.parser.shutdown(clean=False, force = True) + self.parser.final_cleanup() raise bb.BBHandledException() if self.state != state.parsing: -- cgit 1.2.3-korg