This commit is contained in:
gcw_4spBpAfv
2026-01-24 11:05:03 +08:00
parent 28fb62e5d6
commit 8ce8831315
9 changed files with 197 additions and 127 deletions

View File

@@ -1225,7 +1225,10 @@ class OTAManager:
return
else:
safe_enqueue({"result": result}, 2)
except Exception as e:
err_msg = f"下载失败: {str(e)}"
safe_enqueue({"result": err_msg}, 2)
self.logger.error(err_msg)
finally:
self._stop_update_thread()
print("[UPDATE] 更新线程执行完毕,即将退出。")