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

Fix DownloadItem not being properly initialized #6

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

theogravity
Copy link
Owner

Adds fixes around DownloadData population.

Breaking changes

DownloadManager.download() is now async.

This change is necessary to fix a race condition where download() is called, but if you immediately try to perform an operation against the returned id, such as pauseDownload(), the DownloadItem has not been properly initialized since the event that populates DownloadItem is out-of-band.

Fixes #4

@theogravity theogravity merged commit 094f9b7 into main Apr 4, 2024
1 check passed
@theogravity theogravity deleted the fix-null-item branch April 4, 2024 19:42
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.

pause issues
1 participant