aboutsummaryrefslogtreecommitdiff
path: root/src/worker_ws.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/worker_ws.rs')
-rw-r--r--src/worker_ws.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/worker_ws.rs b/src/worker_ws.rs
index 526de82..c98e08d 100644
--- a/src/worker_ws.rs
+++ b/src/worker_ws.rs
@@ -85,6 +85,7 @@ async fn worker_websocket_inner(ws: WebSocket, state: Arc<RwLock<State>>) {
assigned_tasks: HashSet::new(),
},
);
+ g.send_webui_worker_update(id);
id
};
@@ -144,6 +145,7 @@ async fn worker_websocket_inner(ws: WebSocket, state: Arc<RwLock<State>>) {
g.loading.remove(&key);
g.queue.insert(key);
}
+ g.send_webui_worker_removal(worker);
}
}