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
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -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?