fix: clear closed connections

This commit is contained in:
oomeow
2025-10-29 22:10:22 +08:00
Unverified
parent 6aa49b51f6
commit 6206eb5aa3

View File

@@ -141,9 +141,11 @@ export const useConnectionData = () => {
const clearClosedConnections = () => {
mutate(`$sub$${subscriptKey}`, {
activeConnections: response.data?.activeConnections,
uploadTotal: response.data?.uploadTotal ?? 0,
downloadTotal: response.data?.downloadTotal ?? 0,
activeConnections: response.data?.activeConnections ?? [],
closedConnections: [],
});
} as ConnectionMonitorData);
};
return { response, refreshGetClashConnection, clearClosedConnections };