From f3423abe921a470fc3ef1b9e6076643efcc799e0 Mon Sep 17 00:00:00 2001 From: Zephyruso <127948745+Zephyruso@users.noreply.github.com> Date: Fri, 8 Sep 2023 13:53:08 +0800 Subject: [PATCH] fix(connections): close conns --- src/signals/proxies.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/signals/proxies.ts b/src/signals/proxies.ts index 085002a..0659a53 100644 --- a/src/signals/proxies.ts +++ b/src/signals/proxies.ts @@ -47,7 +47,7 @@ const setProxiesInfo = (proxies: (Proxy | ProxyNode)[]) => { export const useProxies = () => { const request = useRequest() - const { activeConnectionsWithSpeed } = useConnections() + const { activeConnections } = useConnections() const updateProxies = async () => { const [{ providers }, { proxies }] = await Promise.all([ @@ -83,7 +83,7 @@ export const useProxies = () => { const proxyGroup = proxyGroupList.find((i) => i.name === proxy.name)! if (autoCloseConns()) { - activeConnectionsWithSpeed().forEach(({ id, chains }) => { + activeConnections().forEach(({ id, chains }) => { if (chains.includes(proxy.name)) { request.delete(`connections/${id}`) }