Update app/core/plugin.py

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
This commit is contained in:
Aqr-K
2025-09-30 19:26:33 +08:00
committed by GitHub
parent 803f4328f4
commit 266052b12b

View File

@@ -302,6 +302,8 @@ class PluginManager(metaclass=Singleton):
logger.info("正在停止插件文件修改监测...")
self._stop_monitor_event.set()
self._monitor_thread.join(timeout=5)
if self._monitor_thread.is_alive():
logger.warning("插件文件修改监测线程在5秒内未能正常停止。")
self._monitor_thread = None
logger.info("插件文件修改监测停止完成")
else: