diff --git a/pkg/core/track.go b/pkg/core/track.go index 1faae309..0a3a701c 100644 --- a/pkg/core/track.go +++ b/pkg/core/track.go @@ -73,6 +73,9 @@ func (t *Receiver) Replace(target *Receiver) { // move this receiver senders to new receiver t.mu.Lock() senders := t.senders + // fix https://github.com/AlexxIT/go2rtc/issues/828 + // TODO: fix the reason, not the consequence + t.senders = nil t.mu.Unlock() target.mu.Lock()