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

Avoid reference in closure to reduce life span of objects. #1809

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

boks1971
Copy link
Contributor

A subscription in subscription manager could live till the source track goes away even though the participant with that subscription is long gone due to closure on source track removal. Handle it by using trackID to look up on source track removal.

Also, logging SDPs when a negotiation failure happens to check if there are any mismatches.

A subscription in subscription manager could live till the source
track goes away even though the participant with that subscription
is long gone due to closure on source track removal. Handle it by using
trackID to look up on source track removal.

Also, logging SDPs when a negotiation failure happens to check
if there are any mismatches.
@boks1971 boks1971 changed the title Avoid closure to reduce life span of objects. Avoid reference in closure to reduce life span of objects. Jun 20, 2023
@boks1971 boks1971 merged commit 583648a into master Jun 20, 2023
2 checks passed
@boks1971 boks1971 deleted the raja_no_closure branch June 20, 2023 13:36
Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solid fix! A good reminder to avoid this pattern in the future.

hautvfami pushed a commit to Stark-Industries-Ltd/livekit that referenced this pull request Jul 21, 2023
A subscription in subscription manager could live till the source
track goes away even though the participant with that subscription
is long gone due to closure on source track removal. Handle it by using
trackID to look up on source track removal.

Also, logging SDPs when a negotiation failure happens to check
if there are any mismatches.
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.

None yet

3 participants