Don't issue TrackPublished/Unpublished event on migrated track (#3482)

This commit is contained in:
cnderrauber
2025-03-03 15:32:17 +08:00
committed by GitHub
parent 1cffe30cd0
commit 04ed56835e
2 changed files with 44 additions and 32 deletions
+2 -2
View File
@@ -88,7 +88,7 @@ func TestTrackPublishing(t *testing.T) {
published = true
})
p.UpTrackManager.AddPublishedTrack(track)
p.handleTrackPublished(track)
p.handleTrackPublished(track, false)
require.True(t, published)
require.False(t, updated)
require.Len(t, p.UpTrackManager.publishedTracks, 1)
@@ -255,7 +255,7 @@ func TestDisconnectTiming(t *testing.T) {
}()
track := &typesfakes.FakeMediaTrack{}
p.UpTrackManager.AddPublishedTrack(track)
p.handleTrackPublished(track)
p.handleTrackPublished(track, false)
// close channel and then try to Negotiate
msg.Close()