music: remove old deadlock check

No longer needed and likely causing bugs
This commit is contained in:
Alexander Capehart 2024-01-01 10:06:19 -07:00
parent c7f8b3ca6d
commit 2af8d8b4bd
No known key found for this signature in database
GPG key ID: 37DBE3621FE9AD47

View file

@ -488,12 +488,6 @@ constructor(
emitIndexingProgress(IndexingProgress.Songs(rawSongs.size, query.projectedTotal))
}
// This shouldn't occur, but keep them around just in case there's a regression.
// Note that DeviceLibrary might still actually be doing work (specifically parent
// processing), so we don't check if it's deadlocked.
check(!mediaStoreJob.isActive) { "MediaStore discovery is deadlocked" }
check(!tagJob.isActive) { "Tag extraction is deadlocked" }
// Deliberately done after the involved initialization step to make it less likely
// that the short-circuit occurs so quickly as to break the UI.
// TODO: Do not error, instead just wipe the entire library.