music: emit indexing completion at end
This commit is contained in:
@@ -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?
|
||||||
|
|||||||
Reference in New Issue
Block a user