music: emit indexing completion at end

This commit is contained in:
Alexander Capehart
2024-11-26 20:14:18 -07:00
parent cc9bb167c4
commit 1962fbe70a
@@ -347,6 +347,8 @@ constructor(private val indexer: Indexer, private val musicSettings: MusicSettin
val newLibrary =
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
// amount of consumers of MusicRepository.
// TODO: Would Atomics not be a better fit here?