Skip to content

Set rparticipant variable before emit event#74

Merged
theomonnom merged 1 commit intolivekit:mainfrom
MDBox:fix/data-emit-rparticipant
Oct 3, 2023
Merged

Set rparticipant variable before emit event#74
theomonnom merged 1 commit intolivekit:mainfrom
MDBox:fix/data-emit-rparticipant

Conversation

@MDBox
Copy link
Copy Markdown
Contributor

@MDBox MDBox commented Oct 3, 2023

This PR sets the rparticipant variable to None in the data_received event. This addresses the error Local variable referenced before assignment. This may have negative effects in users callback functions if there isn't a None type check before referencing participant.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Oct 3, 2023

CLA assistant check
All committers have signed the CLA.

@theomonnom theomonnom merged commit 3e410a2 into livekit:main Oct 3, 2023
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