Skip to content

Fix race condition with unsubscribing from a republished track - #1429

Merged
davidzhao merged 4 commits into
masterfrom
dz-handle-unsubscribe-race
Feb 16, 2023
Merged

davidzhao merged 4 commits into
masterfrom
dz-handle-unsubscribe-race

Conversation

@davidzhao

Copy link
Copy Markdown
Member

No description provided.

Comment thread pkg/rtc/subscriptionmanager.go Outdated
// to prevent race conditions, if we've recently been asked to subscribe to a track
// ignore when source was removed. reconciler will take care of it eventually
// this would address the case when a track was unpublished and republished immediately
// it's possible for setSubscribed(true) for the republished track to fire before

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

setSubscribed -> setDesired.

@davidzhao
davidzhao merged commit c16eb66 into master Feb 16, 2023
@davidzhao
davidzhao deleted the dz-handle-unsubscribe-race branch February 16, 2023 23:11
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.

3 participants