From 7b22d65c24e288ce0d678190bdb0a4705cb81c36 Mon Sep 17 00:00:00 2001 From: Vinicius Moreira Date: Wed, 7 Aug 2019 18:57:21 -0300 Subject: [PATCH] merge staging --- fpakman/core/controller.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fpakman/core/controller.py b/fpakman/core/controller.py index d80420c4..d5c9c61e 100755 --- a/fpakman/core/controller.py +++ b/fpakman/core/controller.py @@ -21,6 +21,7 @@ class GenericApplicationManager(ApplicationManager): self.map = {m.get_app_type(): m for m in self.managers} self.disk_loader_factory = disk_loader_factory self._enabled_map = {} if app_args.check_packaging_once else None + self.thread_prepare = None def _sort(self, apps: List[Application], word: str) -> List[Application]: @@ -90,6 +91,11 @@ class GenericApplicationManager(ApplicationManager): return res + def _wait_to_be_ready(self): + if self.thread_prepare: + self.thread_prepare.join() + self.thread_prepare = None + def read_installed(self, disk_loader: DiskCacheLoader = None) -> List[Application]: self._wait_to_be_ready()