Skip to content

Commit

Permalink
Delete Connection
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Dec 9, 2024
1 parent a9a5c27 commit 85081ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 85081ba

Please sign in to comment.