mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-27 05:06:40 +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() {
|
}).then(function() {
|
||||||
|
|
||||||
// Don't keep the original parent process alive
|
// Don't keep the original parent process alive
|
||||||
|
setTimeout(function() {
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user