Skip to content

Commit 86d32f7

Browse files
authored
Remove track from pending publishing on device errors (#1380)
1 parent b16a6fe commit 86d32f7

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.changeset/fair-moose-draw.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'livekit-client': patch
3+
---
4+
5+
Remove track from pending publishing on device errors

src/room/participant/LocalParticipant.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,7 @@ export default class LocalParticipant extends Participant {
502502
if (e instanceof Error) {
503503
this.emit(ParticipantEvent.MediaDevicesError, e);
504504
}
505+
this.pendingPublishing.delete(source);
505506
throw e;
506507
}
507508
try {

0 commit comments

Comments
 (0)