mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-03-20 12:08:09 +08:00
fix run_async
This commit is contained in:
@@ -461,7 +461,7 @@ class Scheduler(metaclass=Singleton):
|
||||
if not func:
|
||||
return
|
||||
if inspect.iscoroutinefunction(func):
|
||||
AsyncUtils.run_async_in_executor(func(*args, **kwargs))
|
||||
AsyncUtils.run_async(func(*args, **kwargs))
|
||||
else:
|
||||
job["func"](*args, **kwargs)
|
||||
except Exception as e:
|
||||
|
||||
Reference in New Issue
Block a user