From 701f659456ba9e8d416f2e99312fae137ab2eef7 Mon Sep 17 00:00:00 2001 From: santaspeen Date: Thu, 18 Jul 2024 17:40:22 +0300 Subject: [PATCH] [!] Fix ThreadPoolExecutor --- src/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main.py b/src/main.py index f6b1893..1412bf8 100644 --- a/src/main.py +++ b/src/main.py @@ -434,8 +434,8 @@ class VMKer: vm = self._clone(nn, destfolder, clone_spec) self._configure(vm) - for new_name in new_names: - with ThreadPoolExecutor(max_workers=2) as executor: + with ThreadPoolExecutor(max_workers=2) as executor: + for new_name in new_names: executor.submit(_caf, new_name) else: