fix 定时服务立即生效

fix #1615
This commit is contained in:
jxxghp
2024-03-08 16:22:53 +08:00
parent b5d7b6fb53
commit 851864cd49
4 changed files with 40 additions and 10 deletions

View File

@ -267,7 +267,10 @@ class Command(metaclass=Singleton):
停止事件处理线程
"""
self._event.set()
self._thread.join()
try:
self._thread.join()
except Exception as e:
logger.error(f"停止事件处理线程出错:{str(e)} - {traceback.format_exc()}")
def get_commands(self):
"""