fix 插件重复启动的问题

This commit is contained in:
jxxghp
2023-08-22 21:02:35 +08:00
committed by GitHub
parent 45faf0cf18
commit e448cafb21

View File

@ -80,8 +80,8 @@ class PluginManager(metaclass=Singleton):
"""
# 停止所有插件
for plugin in self._running_plugins.values():
if hasattr(plugin, "stop"):
plugin.stop()
if hasattr(plugin, "stop_service"):
plugin.stop_service()
def get_plugin_config(self, pid: str) -> dict:
"""