From a8f21068fca0fc04f419f987cfa21dd5dff3ba6c Mon Sep 17 00:00:00 2001 From: DecDuck Date: Tue, 31 Dec 2024 00:03:56 +1100 Subject: [PATCH] fix(tasks): fix disconnect code --- server/internal/tasks/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/internal/tasks/index.ts b/server/internal/tasks/index.ts index 6c7b197..97d828c 100644 --- a/server/internal/tasks/index.ts +++ b/server/internal/tasks/index.ts @@ -112,7 +112,7 @@ class TaskHandler { } disconnectAll(id: string) { - for (const [taskId] of Object.keys(this.taskRegistry)) { + for (const taskId of Object.keys(this.taskRegistry)) { delete this.taskRegistry[taskId].clients[id]; }