Skip to content

Fix a race condition with DataChannel#421

Open
gtherond wants to merge 4 commits intogradio-app:mainfrom
gtherond:fix/DataChannel
Open

Fix a race condition with DataChannel#421
gtherond wants to merge 4 commits intogradio-app:mainfrom
gtherond:fix/DataChannel

Conversation

@gtherond
Copy link

@gtherond gtherond commented Jan 7, 2026

Fix a race condition where sending data on DC fail as it doesn't check for the readyState to be opened before sending data onto the DC.

Fix a race condition where sending data on DC fail as it doesn't check for the readyState to be opened before sending data onto the DC.
Copy link
Collaborator

@freddyaboulton freddyaboulton left a comment

Choose a reason for hiding this comment

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

Thanks @gtherond !

@freddyaboulton
Copy link
Collaborator

Can you please fix the lint? Looks like the indentation does not line up

@gtherond
Copy link
Author

Can you please fix the lint? Looks like the indentation does not line up

For sure!

@gtherond
Copy link
Author

Ok, I've added the missing part of the patch, sorry it seems I didn't performed my diff patch properly the first time ^^

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