Skip to content

Commit 34c9c39

Browse files
authored
Fix redis client not close after plugin parse (#780)
1 parent f099777 commit 34c9c39

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

backend/plugin/tools.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ def parse_plugin_config() -> tuple[list[dict[str, Any]], list[dict[str, Any]]]:
178178
# 重置插件变更状态
179179
run_await(current_redis_client.delete)(f'{settings.PLUGIN_REDIS_PREFIX}:changed')
180180

181+
# 关闭连接
182+
run_await(current_redis_client.aclose)()
183+
181184
return extend_plugins, app_plugins
182185

183186

0 commit comments

Comments
 (0)