ignore whether sending to an actor failed in a broadcast

This commit is contained in:
Aubrey 2024-12-20 21:14:43 -06:00
parent 8e4c13a8dd
commit 63d5b177b4
No known key found for this signature in database

View file

@ -23,7 +23,7 @@ use crate::{
pub async fn broadcast_packet(packet: Packet) {
for (id, (address, _)) in clients().read().await.iter() {
if *id != packet.user_id {
let _ = address.send(packet.clone()).detach().await.unwrap();
let _ = address.send(packet.clone()).detach().await;
}
}