mirror of
https://github.com/livekit/livekit.git
synced 2026-10-22 17:32:23 +00:00
Broadcast inside lock (#3626)
This commit is contained in:
1 parent
f24152b4c0
commit
6739e7bcc8
1 file changed
+1
-1
@@ -43,8 +43,8 @@ func (d *IncrementalDispatcher[T]) Add(item T) {
|
||||
}
|
||||
d.lock.Lock()
|
||||
d.items = append(d.items, item)
|
||||
d.lock.Unlock()
|
||||
d.cond.Broadcast()
|
||||
d.lock.Unlock()
|
||||
}
|
||||
|
||||
func (d *IncrementalDispatcher[T]) Done() {
|
||||
|
||||
Reference in new issue
Block a user