Don't output error log if upstream closed while binding (#1211)

This commit is contained in:
cnderrauber authored and GitHub committed 2022-12-05 15:32:30 +08:00
1 parent e9abb47020
commit 6f27d683a9
1 file changed
+1 -1
+1 -1
View File
@@ -139,7 +139,7 @@ func (t *MediaTrackSubscriptions) AddSubscriber(sub types.LocalParticipant, wr *
if reusingTransceiver.Load() {
downTrack.SeedState(dtState)
}
if err = wr.AddDownTrack(downTrack); err != nil {
if err = wr.AddDownTrack(downTrack); err != nil && err != sfu.ErrReceiverClosed {
sub.GetLogger().Errorw(
"could not add down track", err,
"publisher", subTrack.PublisherIdentity(),