resolve downtrack.bind/close timing issue (#833)
* resolve downtrack.bind/close timing issue * fix test case
This commit is contained in:
+1
-1
@@ -372,7 +372,7 @@ func (w *WebRTCReceiver) AddDownTrack(track TrackSender) error {
|
||||
}
|
||||
|
||||
if w.downTrackSpreader.HasDownTrack(track.SubscriberID()) {
|
||||
return ErrDownTrackAlreadyExist
|
||||
w.logger.Infow("subscriberID already exists, replace the downtrack", "subscriberID", track.SubscriberID())
|
||||
}
|
||||
|
||||
if w.Kind() == webrtc.RTPCodecTypeVideo {
|
||||
|
||||
Reference in New Issue
Block a user