Skip to content

Commit

Permalink
src: stream: webrtc: Do not panic when failing to close the websocket
Browse files Browse the repository at this point in the history
  • Loading branch information
joaoantoniocardoso authored and patrickelectric committed Jun 12, 2024
1 parent 2ade258 commit 7fa4dd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/stream/webrtc/signalling_server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ impl SignallingServer {
}

if let Err(error) = ws_sink.close().await {
panic!("Failed closing the WebSocket: {error:#?}");
warn!("Failed closing the WebSocket: {error:#?}");
}

info!("WebSocket connection closed: {reason:?}");
Expand Down

0 comments on commit 7fa4dd8

Please sign in to comment.