-
-
Notifications
You must be signed in to change notification settings - Fork 366
New issue
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
RTCPeerConnection::close
no longer returns a Send
future
#413
Comments
4 tasks
This was referenced Mar 20, 2023
Maybe this is related to this issue #422 |
To avoid this in the future, it might be worth looking at activating the following clippy lint: https://rust-lang.github.io/rust-clippy/master/#future_not_send |
Fixed by #429. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am not sure if this change was on purpose, but in the latest release, the
RTCPeerConnection::close
function returns a future that is no longerSend
which effectively makes this unusable with most executors that send tasks between worker threads.See https://github.com/libp2p/rust-libp2p/actions/runs/4280630599/jobs/7453106193 for an example compile output.
The underlying issue seems to be that
RTCRtpTransceiver::stop
holds a mutex lock across an await point. Is that Mutex even necessary? None of the functions withinRTCRtpTransceiver
take&mut self
so you should be fine without the Mutex?The text was updated successfully, but these errors were encountered: