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

Fixing downloadPromise not resolving on Mac. #5802

Merged

Conversation

martinzak-zaber
Copy link
Contributor

Hello,

We are using autoInstallOnAppQuit=false (non mandatory updates). After the update, it stopped working for us on Mac. It's because we use downloadPromise to wait for the package to be downloaded. The promise never resolves on Mac. The promise never resolves because it depends on autoInstallOnAppQuit being true and the package being handed to Squirell.

I am not sure whether this is the correct solution to this problem or whether it's just a misunderstanding of the API contract, but I am sure you folks can advise.

Additionally, I am not sure whether we want the HTTP server should be running for autoInstallOnAppQuit=false all the time. Perhaps the whole server should only be started when autoInstallOnAppQuit is true and on quitAndInstall call when autoInstallOnAppQuit is false. I am happy to take the code to that course if deemed suitable.

Thank you for looking into this.

Copy link
Collaborator

@mmaietta mmaietta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mmaietta mmaietta merged commit d57453c into electron-userland:master Apr 23, 2021
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