Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/fix-pct-scope-not-cancelled.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"client-sdk-android": patch
---

Fixed PeerConnectionTransport coroutine scope not being cancelled on close.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ import io.livekit.android.webrtc.peerconnection.launchBlockingOnRTCThread
import kotlinx.coroutines.CoroutineDispatcher
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.SupervisorJob
import kotlinx.coroutines.cancel
import kotlinx.coroutines.runBlocking
import livekit.org.webrtc.IceCandidate
import livekit.org.webrtc.MediaConstraints
Expand Down Expand Up @@ -309,6 +310,7 @@ constructor(
isClosed.set(true)
peerConnection.dispose()
}
coroutineScope.cancel()
}

fun updateRTCConfig(config: RTCConfiguration) {
Expand Down