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:
Juan Cruz Viotti 2016-05-04 01:35:19 -04:00
parent 369e38b310
commit ccef599bcf

View File

@ -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);
});
});