This commit is contained in:
2025-12-13 15:41:17 +08:00
parent 2d0691153d
commit 00b52253a8
149 changed files with 164 additions and 128745 deletions

View File

@@ -992,7 +992,11 @@ class SimpleFileWatcher:
"""停止监听"""
self.running = False
if self.thread and self.thread.is_alive():
self.thread.join(timeout=1)
try:
self.thread.join(timeout=1)
except KeyboardInterrupt:
# 忽略键盘中断异常,直接继续执行
pass
class ServerManager:
"""服务器管理器"""
@@ -1075,7 +1079,11 @@ class ServerManager:
"""关闭所有服务"""
self.running = False
self.stop_server()
self.stop_file_watcher()
try:
self.stop_file_watcher()
except KeyboardInterrupt:
# 忽略关闭过程中的键盘中断异常
pass
def check_database_exists():
"""