mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Fix deadlock situation when events are sent too fast to the broker
This commit is contained in:
parent
4ea0f235e1
commit
5bd33455a1
2 changed files with 8 additions and 9 deletions
|
@ -48,7 +48,6 @@ type scanner struct {
|
|||
ds model.DataStore
|
||||
cacheWarmer core.CacheWarmer
|
||||
broker events.Broker
|
||||
scan chan bool
|
||||
}
|
||||
|
||||
type scanStatus struct {
|
||||
|
@ -66,7 +65,6 @@ func New(ds model.DataStore, cacheWarmer core.CacheWarmer, broker events.Broker)
|
|||
folders: map[string]FolderScanner{},
|
||||
status: map[string]*scanStatus{},
|
||||
lock: &sync.RWMutex{},
|
||||
scan: make(chan bool),
|
||||
}
|
||||
s.loadFolders()
|
||||
return s
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue