mirror of
https://github.com/J3vb/OwnCord.git
synced 2026-09-03 03:50:00 +03:00
Both setupAudioPipeline and teardownAudioPipeline called replaceTrack as fire-and-forget. If teardown's replaceTrack resolved after setup's, the WebRTC sender would be bound to the wrong track. Both paths now capture _pipelineGeneration before the async call and detect stale completions, preventing out-of-order track replacement.