fix republish failed (#2966)

* fix republish failed

parallel negotiation would cause remote webrtc track consume
pending republished track then failed.

* comment
This commit is contained in:
cnderrauber
2024-08-29 15:41:32 +08:00
committed by GitHub
parent 16896e4d66
commit 28417ef599
3 changed files with 18 additions and 8 deletions
+1 -1
View File
@@ -286,7 +286,7 @@ func TestMuteSetting(t *testing.T) {
Muted: true,
})
_, ti, _, _ := p.getPendingTrack("cid", livekit.TrackType_AUDIO)
_, ti, _, _ := p.getPendingTrack("cid", livekit.TrackType_AUDIO, false)
require.NotNil(t, ti)
require.True(t, ti.Muted)
})