Clear participant version cache on disconnect (#4234)
* debug participant update * more debug * context logger * log participant info * more logging * clear participant cache on disconnect * clean up * clean up
This commit is contained in:
@@ -118,6 +118,10 @@ func (p *ParticipantImpl) SendParticipantUpdate(participantsToUpdate []*livekit.
|
||||
})
|
||||
validUpdates = append(validUpdates, pi)
|
||||
}
|
||||
|
||||
if pi.State == livekit.ParticipantInfo_DISCONNECTED {
|
||||
p.updateCache.Remove(pID)
|
||||
}
|
||||
}
|
||||
p.updateLock.Unlock()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user