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 subscription timing #108

Merged
merged 2 commits into from
Oct 14, 2024
Merged

Fix subscription timing #108

merged 2 commits into from
Oct 14, 2024

Conversation

davidzhao
Copy link
Member

Agent fails to subscribe to user track if it was connect to room before agent.

Agent fails to subscribe to user track if it was connect to room before agent.
Copy link

changeset-bot bot commented Oct 14, 2024

🦋 Changeset detected

Latest commit: e8b0e06

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@livekit/agents Patch
@livekit/agents-plugin-openai Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@davidzhao davidzhao requested a review from a team October 14, 2024 06:32
Copy link
Member

@theomonnom theomonnom left a comment

Choose a reason for hiding this comment

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

lg

@davidzhao davidzhao merged commit 8d2f75d into main Oct 14, 2024
3 checks passed
@davidzhao davidzhao deleted the fix-sub-timing branch October 14, 2024 06:40
@github-actions github-actions bot mentioned this pull request Oct 14, 2024
Comment on lines +310 to +314
for (const publication of this.linkedParticipant.trackPublications.values()) {
if (publication.source === TrackSource.SOURCE_MICROPHONE && publication.track) {
this.#handleTrackSubscription(publication.track, publication, this.linkedParticipant);
break;
}
Copy link
Member

Choose a reason for hiding this comment

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

This part doesn't subscribe if not subscribed. So you may miss an event?

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.

2 participants