enhancement: marked several threads as 'daemon' for a faster termination

This commit is contained in:
Vinicius Moreira
2023-11-26 11:16:43 -03:00
parent 676f4300b7
commit 925aaf35c5
14 changed files with 46 additions and 33 deletions

View File

@@ -68,7 +68,7 @@ class DependenciesAnalyser:
if not repository:
for name in missing_names:
t = Thread(target=self._fill_repository, args=(name, missing_root))
t = Thread(target=self._fill_repository, args=(name, missing_root), daemon=True)
t.start()
threads.append(t)
@@ -518,7 +518,8 @@ class DependenciesAnalyser:
if aur_providers_no_data:
aur_providers_data = dict()
aur_data_filler = Thread(target=self._fill_aur_updates_data,
args=(aur_providers_no_data, aur_providers_data))
args=(aur_providers_no_data, aur_providers_data),
daemon=True)
aur_data_filler.start()
if repo_providers_no_data: