Make the bunkernet not run in a thread to avoid errors

This commit is contained in:
TheophileDiot 2022-11-20 17:34:26 +01:00
parent 840ef8cf89
commit 7391900513
1 changed files with 8 additions and 4 deletions

View File

@ -197,10 +197,14 @@ class JobScheduler(ApiCaller):
path = job["path"]
name = job["name"]
file = job["file"]
thread = Thread(
target=self.__job_wrapper, args=(path, plugin, name, file)
)
threads.append(thread)
if job["name"].startswith("bunkernet"):
self.__job_wrapper(path, plugin, name, file)
else:
thread = Thread(
target=self.__job_wrapper, args=(path, plugin, name, file)
)
threads.append(thread)
for thread in threads:
thread.start()