v1.8.81: fix update apply — os._exit(0) to kill daemon threads

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
chrome-storm-c442
2026-03-01 09:31:17 -05:00
parent e929995803
commit bf27141a85
3 changed files with 14 additions and 5 deletions

View File

@@ -347,8 +347,7 @@ class App(ctk.CTk):
if event_type == "auto_apply":
# Full-auto mode: apply immediately
if self.updater.apply_update(path):
self.destroy()
self._apply_update(path)
return
# Show banner
@@ -399,9 +398,19 @@ class App(ctk.CTk):
)
def _apply_update(self, path: str):
"""Apply downloaded update."""
"""Apply downloaded update — cleanup, launch updater script, force exit."""
import os, sys
if self.updater.apply_update(path):
# Full cleanup before exit
try:
self.session_pool.disconnect_all()
self.checker.stop()
self.updater.stop()
self.destroy()
except Exception:
pass
# Force terminate — daemon threads keep process alive otherwise
os._exit(0)
def _skip_update(self, version: str):
"""Skip this version."""

Binary file not shown.

View File

@@ -1,6 +1,6 @@
"""Version info for ServerManager."""
__version__ = "1.8.80"
__version__ = "1.8.81"
__app_name__ = "ServerManager"
__author__ = "aibot777"
__description__ = "Desktop GUI for managing remote servers"