修复bug,临时提交

This commit is contained in:
zw
2025-08-07 21:37:46 +08:00
parent 3f7c366278
commit d7c98d1fc8
4 changed files with 7 additions and 7 deletions

View File

@@ -17,11 +17,12 @@ class ThreadManager():
@classmethod
def stop(cls, udid):
print(cls.threads)
info = cls.threads[udid]
if info:
info["stopEvent"].set() # 停止线程
info["thread"].join(timeout=3) # 等待线程退出
del cls.threads[udid]
LogManager.info("停止线程成功")
LogManager.info("停止线程成功", udid)
else:
LogManager.info("无此线程,无需关闭")
LogManager.info("无此线程,无需关闭", udid)