Fix reconnection issue

This commit is contained in:
Alex X
2024-02-10 08:49:47 +03:00
parent f237119b9a
commit 5fa31fe4d6
-3
View File
@@ -73,9 +73,6 @@ 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()