Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Fix RC when subscribing to a track #120

Merged
merged 2 commits into from
May 23, 2022
Merged

Fix RC when subscribing to a track #120

merged 2 commits into from
May 23, 2022

Conversation

mickel8
Copy link
Contributor

@mickel8 mickel8 commented May 19, 2022

When subscribing to a track we might fail because track we are trying to subscribe to has been deleted just before doing the subscription and we haven't received this information yet. This PR fixes that RC by ignoring {:error, :invalid_track_id} returned from Engine.subscribe.

The other solution would be to distinct between :invalid_track_id and :track_already_removed errors. To achieve this we had to introduce buffer for already removed tracks with some arbitrary capacity.

@mickel8 mickel8 requested a review from daniel-jodlos May 19, 2022 11:49
@mickel8 mickel8 self-assigned this May 19, 2022
Co-authored-by: Daniel Jodłoś <daniel.jodlos@swmansion.com>
@mickel8 mickel8 merged commit 1f9dd76 into master May 23, 2022
@mickel8 mickel8 deleted the fix-subscribtion-rc branch May 23, 2022 13:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants