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 issues around multiple downloads #13

Merged
merged 1 commit into from
Aug 4, 2024
Merged

Conversation

theogravity
Copy link
Owner

This resolves #11

There was an expectation that the will-download handler will immediately fire / resolve after downloadURL is called in the ElectronDownloadManager#download() call.

This wasn't the case and introduced strange bugs where multiple will-download handlers may be triggered for a prior download instead of the intended one.

This PR implements an async queue that ensures that download calls are executed sequentially, and resolves after the current will-download handler has resolved.

@theogravity theogravity merged commit 55358ba into main Aug 4, 2024
1 check passed
@theogravity theogravity deleted the multi-download-fix branch August 4, 2024 07:14
theogravity added a commit that referenced this pull request Aug 4, 2024
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.

Concurrent downloads not working
1 participant