Skip to content

Commit

Permalink
music: remove old deadlock check
Browse files Browse the repository at this point in the history
No longer needed and likely causing bugs
  • Loading branch information
OxygenCobalt committed Jan 1, 2024
1 parent c7f8b3c commit 2af8d8b
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/src/main/java/org/oxycblt/auxio/music/MusicRepository.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2af8d8b

Please sign in to comment.