浏览代码

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 <richard.purdie@linuxfoundation.org>
Richard Purdie 3 年之前
父节点
当前提交
8f2d690428
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      lib/bb/cooker.py

+ 1 - 0
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: