music: emit indexing completion at end
This commit is contained in:
parent
cc9bb167c4
commit
1962fbe70a
1 changed files with 2 additions and 0 deletions
|
@ -347,6 +347,8 @@ constructor(private val indexer: Indexer, private val musicSettings: MusicSettin
|
||||||
val newLibrary =
|
val newLibrary =
|
||||||
indexer.run(uris, Interpretation(nameFactory, separators), ::emitIndexingProgress)
|
indexer.run(uris, Interpretation(nameFactory, separators), ::emitIndexingProgress)
|
||||||
|
|
||||||
|
emitIndexingCompletion(null)
|
||||||
|
|
||||||
// We want to make sure that all reads and writes are synchronized due to the sheer
|
// We want to make sure that all reads and writes are synchronized due to the sheer
|
||||||
// amount of consumers of MusicRepository.
|
// amount of consumers of MusicRepository.
|
||||||
// TODO: Would Atomics not be a better fit here?
|
// TODO: Would Atomics not be a better fit here?
|
||||||
|
|
Loading…
Reference in a new issue