mirror of
https://github.com/balena-io/etcher.git
synced 2025-04-24 07:17:18 +00:00
Fix application not being elevated in Windows (#393)
After elevation routine refactoring, it looks like we have to exit the parent process after a short while, otherwise it kills the app before the elevated child process is executed. Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
parent
369e38b310
commit
ccef599bcf
@ -55,7 +55,9 @@ exports.require = function(app, applicationName, callback) {
|
||||
}).then(function() {
|
||||
|
||||
// Don't keep the original parent process alive
|
||||
process.exit(0);
|
||||
setTimeout(function() {
|
||||
process.exit(0);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user