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

fixed initial progress error during resume, after multiple pause resumes #13

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

ryan1725
Copy link

@ryan1725 ryan1725 commented Feb 27, 2023

progress error · Issue #12 · nabil6391/flutter_download_manager

Problem:
The task was paused first, then resumed, repeated several times, and the initial progress was found to be wrong when resumed。Restoration progress will start from partialFile.length()

Reason:
The reason is that the current progress is not written to the partialFile during the pause。

Is the condition task.status.value == DownloadStatus.paused too broad? , or should add e instanceof CancelToken? If dio.download throws other exceptions, it seems that keeping the downloaded content is also feasible. Here we need to discuss the scope of conditions

@ryan1725 ryan1725 mentioned this pull request Feb 28, 2023
@nabil6391 nabil6391 merged commit 16dfe06 into nabil6391:master Mar 7, 2023
@ortolanph
Copy link
Contributor

When this fix is planned to be released?

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.

None yet

4 participants