Make the bunkernet not run in a thread to avoid errors
This commit is contained in:
parent
840ef8cf89
commit
7391900513
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue