Skip to content
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

fix: iceStopWaitingOnServerReflexive is resetting the peerConnectionDelegate #1070

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

iomariani
Copy link

@iomariani iomariani commented Feb 28, 2024

When enabling the iceStopWaitingOnServerReflexive configuration and you have a custom sessionDescriptionHandler with custom peerConnectionDelegate, it gets erased.

In the code the delegate is rewritten to the one defined, without using the original delegates.

This fix simply merges the previous peerConnectionDelegate, if exists, to the new peerConnectionDelegate.

sessionDescriptionHandler.peerConnectionDelegate = {
...sessionDescriptionHandler.peerConnectionDelegate,
onicecandidate: (event) => {
sessionDescriptionHandler.peerConnectionDelegate?.onicecandidate?.(event)

…ectionDelegate

When enabling the `iceStopWaitingOnServerReflexive` configuration and you have a custom sessionDescriptionHandler with custom peerConnectionDelegate, it gets erased.

As in the code forces the delegate to be the one set when that config is enabled...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant