mirror of
https://github.com/Drop-OSS/drop.git
synced 2025-11-15 09:11:21 +10:00
fix: properly disconnect websockets from task handler
This commit is contained in:
@ -111,6 +111,14 @@ class TaskHandler {
|
||||
return true;
|
||||
}
|
||||
|
||||
disconnectAll(id: string) {
|
||||
for (const [taskId] of Object.keys(this.taskRegistry)) {
|
||||
delete this.taskRegistry[taskId].clients[id];
|
||||
}
|
||||
|
||||
delete this.clientRegistry[id];
|
||||
}
|
||||
|
||||
disconnect(id: string, taskId: string) {
|
||||
if (!this.taskRegistry[taskId]) return false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user