Skip to content

Commit

Permalink
fix 插件重复启动的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jxxghp authored Aug 22, 2023
1 parent 45faf0c commit e448caf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/core/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def stop(self):
"""
# 停止所有插件
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:
"""
Expand Down

0 comments on commit e448caf

Please sign in to comment.