[!] Fix ThreadPoolExecutor

This commit is contained in:
2024-07-18 17:40:22 +03:00
parent a46b6c936a
commit 701f659456

View File

@@ -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: