use atomic.Load to ensure atomicity

This commit is contained in:
David Zhao
2021-01-28 23:40:30 -08:00
parent fe83baa662
commit dd8a1a5055
3 changed files with 28 additions and 13 deletions
+1
View File
@@ -382,6 +382,7 @@ func (p *ParticipantImpl) SendJoinResponse(roomInfo *livekit.Room, otherParticip
}
func (p *ParticipantImpl) SendParticipantUpdate(participants []*livekit.ParticipantInfo) error {
return p.responseSink.WriteMessage(&livekit.SignalResponse{
Message: &livekit.SignalResponse_Update{
Update: &livekit.ParticipantUpdate{