mirror of
https://github.com/livekit/livekit.git
synced 2026-04-26 13:07:39 +00:00
fix close on nil sink (#344)
This commit is contained in:
@@ -464,7 +464,9 @@ func (p *ParticipantImpl) Close(sendLeave bool) error {
|
||||
|
||||
// ensure this is synchronized
|
||||
p.lock.RLock()
|
||||
p.params.Sink.Close()
|
||||
if p.params.Sink != nil {
|
||||
p.params.Sink.Close()
|
||||
}
|
||||
onClose := p.onClose
|
||||
p.lock.RUnlock()
|
||||
if onClose != nil {
|
||||
|
||||
Reference in New Issue
Block a user