Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
8f2d690428
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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: