Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle finished downloads that weren't removed from the queue #683

Conversation

schroda
Copy link
Collaborator

@schroda schroda commented Sep 16, 2023

In case a download was finished, but the downloader got stopped before it was able to remove the finished download from the queue, the downloader got stuck in an endless loop of starting and pausing downloads.

This was caused by selecting the next chapter to download and then recognizing in "Downloader::step", that there is another chapter to download before the current one in the queue.
However, since this recognized chapter is already downloaded, the downloader selected the next queued chapter again. It was then stuck in this loop until the finished chapter was manually removed from the queue.

@schroda schroda marked this pull request as draft September 16, 2023 11:34
In case a download was finished, but the downloader got stopped before it was able to remove the finished download from the queue, the downloader got stuck in an endless loop of starting and pausing downloads.

This was caused by selecting the next chapter to download and then recognizing in "Downloader::step", that there is another chapter to download before the current one in the queue.
However, since this recognized chapter is already downloaded, the downloader selected the next queued chapter again.
It was then stuck in this loop until the finished chapter was manually removed from the queue.
@schroda schroda force-pushed the fix/downloader_handle_finished_download_not_removed_from_queue branch from 2640028 to 768cd97 Compare September 16, 2023 11:41
@schroda schroda marked this pull request as ready for review September 16, 2023 11:41
@Syer10 Syer10 merged commit 7086055 into Suwayomi:master Sep 16, 2023
2 checks passed
@schroda schroda deleted the fix/downloader_handle_finished_download_not_removed_from_queue branch September 16, 2023 17:36
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.

2 participants