Skip to content

Commit

Permalink
fix: avoid panic
Browse files Browse the repository at this point in the history
  • Loading branch information
jiegec committed Jun 19, 2024
1 parent c534eea commit 1d7c2fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/src/routes/websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ async fn handle_worker_socket(
let mut map = state_map.lock().unwrap();
if let Some(state) = map.get_mut(&hostname) {
for recp in &state.viewers {
recp.sender.unbounded_send(msg.clone()).unwrap();
recp.sender.unbounded_send(msg.clone()).ok();
}

// save last 1000 entries
Expand Down

0 comments on commit 1d7c2fe

Please sign in to comment.