Procházet zdrojové kódy

cooker: Ensure parser is cleaned up

During cooker shutdown, its possible the parser isn't cleaned up. Fix
this (which may partially explain why threads were left hanging around
at exit).

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Richard Purdie před 3 roky
rodič
revize
928609f30f
1 změnil soubory, kde provedl 1 přidání a 0 odebrání
  1. 1 0
      lib/bb/cooker.py

+ 1 - 0
lib/bb/cooker.py

@@ -1674,6 +1674,7 @@ class BBCooker:
         return
 
     def post_serve(self):
+        self.shutdown(force=True)
         prserv.serv.auto_shutdown()
         if self.hashserv:
             self.hashserv.process.terminate()