mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2024-04-26 03:10:29 +02:00
Add missing lock when accessing internal sessions map.
This commit is contained in:
parent
97a6049154
commit
af04cc956d
|
@ -701,6 +701,9 @@ func (r *Room) notifyInternalRoomDeleted() {
|
|||
Type: "delete",
|
||||
},
|
||||
}
|
||||
|
||||
r.mu.Lock()
|
||||
defer r.mu.Unlock()
|
||||
for s := range r.internalSessions {
|
||||
s.(*ClientSession).SendMessage(msg)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue