mirror of
https://github.com/livekit/livekit.git
synced 2026-04-01 00:05:40 +00:00
Broadcast inside lock (#3626)
This commit is contained in:
@@ -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