From 85081bae179c3975e887112c2ccdfec9e1506a94 Mon Sep 17 00:00:00 2001 From: ingalls Date: Mon, 9 Dec 2024 08:23:50 -0700 Subject: [PATCH] Delete Connection --- api/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/index.ts b/api/index.ts index 4169b2134..399cc481a 100644 --- a/api/index.ts +++ b/api/index.ts @@ -207,7 +207,7 @@ export default async function server(config: Config) { if (!conns || !conns.length) return; const i = webClients.indexOf(connClient); - if (!i) return; + if (i < 0) return; webClients[i].destroy(); webClients.splice(i, 1);