diff --git a/matchbox_socket/src/webrtc_socket/socket.rs b/matchbox_socket/src/webrtc_socket/socket.rs index ccb5ab8c..0225c140 100644 --- a/matchbox_socket/src/webrtc_socket/socket.rs +++ b/matchbox_socket/src/webrtc_socket/socket.rs @@ -314,7 +314,9 @@ impl WebRtcChannel { /// # Panics /// Panics if the socket future is dropped. pub fn send(&mut self, packet: Packet, peer: PeerId) { - self.try_send(packet, peer).expect("Send failed"); + let _ = self + .try_send(packet, peer) + .inspect_err(|err| log::warn!("Send failed: {err:?}")); } }