Skip to content

Conversation

dennwc
Copy link
Contributor

@dennwc dennwc commented Oct 3, 2025

No description provided.

@dennwc dennwc self-assigned this Oct 3, 2025
@dennwc dennwc requested a review from a team as a code owner October 3, 2025 12:08
info.DisconnectReason = livekit.DisconnectReason_CLIENT_INITIATED
if info.Error == "" {
if !reason.IsZero() {
info.Error = reason.String()
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to populate error for all reasons ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. I'll check for a normal clearing here.

reasonName = fmt.Sprintf("bye-%s-%d", strings.ToLower(reason.Type), reason.Cause)
}
}
c.close(false, status, reasonName)
Copy link
Contributor

Choose a reason for hiding this comment

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

should the first argument be false in all cases ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, we got a response from the remote, so it's not a critical error to log.

@dennwc dennwc merged commit 789bca4 into main Oct 6, 2025
6 checks passed
@dennwc dennwc deleted the bye-reason branch October 6, 2025 12:02
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