Skip to content

Commit 5977608

Browse files
committed
Fixes deadlock on publish track (livekit#604)
* Fixes deadlock on publish track During a publish track, if the room is leaved before the the track is published, we can't publish a track anymore. Let's abord the pending publish track on leave event and when the websocket is disconnected * Add changeset * Lint fixes
1 parent a7456c2 commit 5977608

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/three-glasses-join.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"client-sdk-android": patch
3+
---
4+
5+
Fixes deadlock on publish track

livekit-android-sdk/src/main/java/io/livekit/android/room/participant/LocalParticipant.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ internal constructor(
490490
}
491491

492492
val trackInfo = try {
493-
engine.addTrack(
493+
engine.addTrack(
494494
cid = cid,
495495
name = options.name ?: track.name,
496496
kind = track.kind.toProto(),

0 commit comments

Comments
 (0)