Fix reconnection issue
This commit is contained in:
@@ -73,9 +73,6 @@ func (t *Receiver) Replace(target *Receiver) {
|
|||||||
// move this receiver senders to new receiver
|
// move this receiver senders to new receiver
|
||||||
t.mu.Lock()
|
t.mu.Lock()
|
||||||
senders := t.senders
|
senders := t.senders
|
||||||
// fix https://github.com/AlexxIT/go2rtc/issues/828
|
|
||||||
// TODO: fix the reason, not the consequence
|
|
||||||
t.senders = nil
|
|
||||||
t.mu.Unlock()
|
t.mu.Unlock()
|
||||||
|
|
||||||
target.mu.Lock()
|
target.mu.Lock()
|
||||||
|
|||||||
Reference in New Issue
Block a user