Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Temporarily avoid releasing livekit RemoteAudioTracks on drop

Max Brunsfeld9d50697caabc
diff --git a/crates/live_kit_client/src/prod.rs b/crates/live_kit_client/src/prod.rs
index 0827c0cbb41..3082c9b5338 100644
--- a/crates/live_kit_client/src/prod.rs
+++ b/crates/live_kit_client/src/prod.rs
@@ -864,7 +864,10 @@ impl RemoteAudioTrack {
impl Drop for RemoteAudioTrack {
fn drop(&mut self) {
- unsafe { CFRelease(self.native_track.0) }
+ // todo: uncomment this `CFRelease`, unless we find that it was causing
+ // the crash in the `livekit.multicast` thread.
+ //
+ // unsafe { CFRelease(self.native_track.0) }
}
}