Skip to content

Commit

Permalink
Fix panic on reconnect #828
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed Jan 1, 2024
1 parent a724c5f commit 9feb98d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pkg/core/track.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 9feb98d

Please sign in to comment.