Fixed deadlock in pion with SRTP and DataChannel

This commit is contained in:
David Zhao
2021-11-11 13:25:08 -08:00
parent 2ec5f2bd3d
commit 90f3c43dc5
3 changed files with 10 additions and 7 deletions
+4 -1
View File
@@ -271,7 +271,10 @@ func (t *MediaTrack) AddSubscriber(sub types.Participant) error {
return
}
if _, ok := err.(*rtcerr.InvalidStateError); !ok {
t.params.Logger.Warnw("could not remove remoteTrack from forwarder", err,
// most of these are safe to ignore, since the track state might have already
// been set to Inactive
t.params.Logger.Debugw("could not remove remoteTrack from forwarder",
"error", err,
"participant", sub.Identity(), "pID", sub.ID())
}
}