We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error contains new(String) - This is bad code!!!!!
new(String)
i get such an error:
>> new("io error: Conn is closed")
i expected to get: Error::ErrConnectionClosed
Error::ErrConnectionClosed
I get this error when I try to write a packet to the track:
while let Some(sample) = appsink_stream.next().await { if let Some(buffer) = sample.buffer() { if let Ok(map) = buffer.map_readable() { let slice = map.as_slice(); if let Err(err) = video_track_clone.write(slice).await { match err { webrtc::Error::ErrConnectionClosed => continue, webrtc::Error::ErrClosedPipe => break, err => { tracing::error!("video_track write err: {err}"); break; } } } } else { break; } } else { break; } }
I am using Arc<TrackLocalStaticRTP> in several RTCPeerConnection The error appears when closing several RTCPeerConnection
Arc<TrackLocalStaticRTP>
RTCPeerConnection
The text was updated successfully, but these errors were encountered:
I suspect it was ported when @algesten moved the error type from anyhow to thiserror, anyhow is more stringly typed.
anyhow
thiserror
I think the way forward here is to start converting the errors that use the new variant to bespoke variants.
new
PRs that do this are welcome I expect
Sorry, something went wrong.
No branches or pull requests
Error contains
new(String)
- This is bad code!!!!!i get such an error:
i expected to get:
Error::ErrConnectionClosed
I get this error when I try to write a packet to the track:
I am using
Arc<TrackLocalStaticRTP>
in severalRTCPeerConnection
The error appears when closing several
RTCPeerConnection
The text was updated successfully, but these errors were encountered: