Skip to content

Commit f2e0bb1

Browse files
authored
Transceiver crash (#770)
Reverts #751 Let's revisit transceiver pools - it requires deeper testing though.
1 parent c6f1fc8 commit f2e0bb1

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

.changes/revert-stop-transceiver

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
patch type="fixed" "Fixed transceiver crash, reverting video memory leak changes"

Sources/LiveKit/Core/Transport.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -323,11 +323,6 @@ extension Transport {
323323
}
324324

325325
func remove(track sender: LKRTCRtpSender) throws {
326-
// Stop the transceiver to release its resources and prevent memory leak
327-
if let transceiver = _pc.transceivers.first(where: { $0.sender == sender }) {
328-
transceiver.stopInternal()
329-
}
330-
331326
guard _pc.removeTrack(sender) else {
332327
throw LiveKitError(.webRTC, message: "Failed to remove track")
333328
}

0 commit comments

Comments
 (0)