Skip to content

Commit

Permalink
Fix blocking main thread on parallel publishing requests (#1336)
Browse files Browse the repository at this point in the history
* Fix blocking main thread on parallel publishing requests

* Create thick-waves-agree.md
  • Loading branch information
lukasIO authored Dec 3, 2024
1 parent 4a99005 commit 3443106
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/thick-waves-agree.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-client": patch
---

Fix blocking main thread on parallel publishing requests
2 changes: 1 addition & 1 deletion src/room/participant/LocalParticipant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2027,7 +2027,7 @@ export default class LocalParticipant extends Participant {
if (publishPromiseEntry) {
return publishPromiseEntry[1];
}
sleep(20);
await sleep(20);
}
throw new Error('waiting for pending publication promise timed out');
}
Expand Down

0 comments on commit 3443106

Please sign in to comment.