Skip to content

Commit

Permalink
fix: Fix electron-updater error handling when spawning a process asyn…
Browse files Browse the repository at this point in the history
…chronously (#7524)
  • Loading branch information
Noah Andrews authored Apr 6, 2023
1 parent 2a8d7e6 commit 1a13480
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/tricky-flies-bow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"electron-updater": patch
---

Fixed error handling when launching updater (fixes NSIS updates when isAdminRightsRequired is incorrectly set to false)
2 changes: 1 addition & 1 deletion packages/electron-updater/src/BaseUpdater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export abstract class BaseUpdater extends AppUpdater {
reject(error)
})
p.unref()
if (process.pid !== undefined) {
if (p.pid !== undefined) {
resolve(true)
}
} catch (error) {
Expand Down

0 comments on commit 1a13480

Please sign in to comment.