Skip to content

fix: prevent stuck download cache renewal on error#432

Merged
Dark25 merged 4 commits into
masterfrom
fix-anime-downloaded
Jul 12, 2026
Merged

fix: prevent stuck download cache renewal on error#432
Dark25 merged 4 commits into
masterfrom
fix-anime-downloaded

Conversation

@Dark25

@Dark25 Dark25 commented Jul 12, 2026

Copy link
Copy Markdown
Collaborator

Wrap the download cache renewal logic in a try-finally block in both AnimeDownloadCache and MangaDownloadCache to ensure that the isInitializing state is always set to false, preventing the "Checking downloads" banner from remaining stuck on the screen if an exception occurs during file scanning.

Close #420

Wrap the download cache renewal logic in a try-finally block in both
AnimeDownloadCache and MangaDownloadCache to ensure that the
isInitializing state is always set to false, preventing the "Checking
downloads" banner from remaining stuck on the screen if an exception
occurs during file scanning.

Close #420
Copilot AI review requested due to automatic review settings July 12, 2026 20:58

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Ensures the download cache “renewal” job always clears the isInitializing flag by wrapping cache scanning in try/finally, aiming to prevent the “Checking downloads” UI from getting stuck if scanning fails.

Changes:

  • Wrap anime download cache renewal logic in try/finally to reset _isInitializing.
  • Wrap manga download cache renewal logic in try/finally to reset _isInitializing.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
app/src/main/java/eu/kanade/tachiyomi/data/download/anime/AnimeDownloadCache.kt Adds try/finally around cache renewal to clear initialization state on completion/failure.
app/src/main/java/eu/kanade/tachiyomi/data/download/manga/MangaDownloadCache.kt Adds try/finally around cache renewal to clear initialization state on completion/failure.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Dark25 and others added 3 commits July 12, 2026 23:36
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Dark25 Dark25 merged commit 0570946 into master Jul 12, 2026
2 checks passed
@Dark25 Dark25 deleted the fix-anime-downloaded branch July 12, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Issue show downloaded series in anime section

2 participants