Skip to content

fix: register a sender once when replaceTrack is given its current track - #425

Merged
devopvoid merged 1 commit into
mainfrom
fix/replace-same-track
Oct 23, 2026
Merged

devopvoid merged 1 commit into
mainfrom
fix/replace-same-track

Conversation

@devopvoid

Copy link
Copy Markdown
Owner

Calling Sender.replaceTrack() with the track the sender already sends registered the sender with that track again, and remove() dropped only one of those registrations. A long-lived track therefore kept removed senders, and their peers, reachable.

A local track now keeps its senders in a set, and replaceTrack() with the current track changes nothing.

@devopvoid
devopvoid merged commit ffbb8d9 into main Oct 23, 2026
22 checks passed
@devopvoid
devopvoid deleted the fix/replace-same-track branch October 23, 2026 16:09
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