更新
This commit is contained in:
@@ -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():
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user