mirror of
https://github.com/MeoProject/lx-music-api-server.git
synced 2025-07-06 22:42:14 +08:00
chore: 优化代码
This commit is contained in:
@ -6,7 +6,6 @@
|
||||
# - license: MIT -
|
||||
# ----------------------------------------
|
||||
# This file is part of the "lx-music-api-server" project.
|
||||
# Do not edit except you know what you are doing.
|
||||
|
||||
# 一个简单的循环任务调度器
|
||||
|
||||
@ -52,7 +51,7 @@ def thread_runner():
|
||||
if t.check_available():
|
||||
t.latest_execute = int(time.time())
|
||||
threading.Thread(target = t.run).start()
|
||||
time.sleep(5)
|
||||
time.sleep(1)
|
||||
|
||||
def run():
|
||||
logger.debug("scheduler thread starting...")
|
||||
|
Reference in New Issue
Block a user