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

Close/Flush Storage stream when cancel requested. #43

Closed
wants to merge 1 commit into from

Conversation

Unnoen
Copy link

@Unnoen Unnoen commented Mar 19, 2021

Prevents cases where the file handle will be let go before writing the part-full buffer.

I discovered this when serialising the Package to disk and attempting to resume downloads after an application restart, the Chunks were missing data preventing the resume.

Prevents cases where the file handle will be let go before writing the buffer.
@bezzad
Copy link
Owner

bezzad commented Mar 19, 2021

Thank you for reporting this issue, but this pull request has some issue with MemoryStorages. I'll fix this problem and release the new version 2.2.4 as soon as possible.

@bezzad bezzad closed this Mar 19, 2021
@Unnoen
Copy link
Author

Unnoen commented Mar 20, 2021

No worries, thanks for responding so quickly. It might be worth looking into tests that restart the application, but I'm not sure how possible that is.

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