Merge pull request #600 from vroad/nodejs-exit-fix
Do not use Sys.exit on nodejs as it closes the app without cleanup
This commit is contained in:
@@ -108,13 +108,15 @@ class NativeApplication {
|
||||
|
||||
if (!active) {
|
||||
|
||||
var result = lime_application_quit (handle);
|
||||
System.exit (result);
|
||||
untyped process.exitCode = lime_application_quit (handle);
|
||||
parent.onExit.dispatch (untyped process.exitCode);
|
||||
|
||||
} else {
|
||||
|
||||
untyped setImmediate (eventLoop);
|
||||
|
||||
}
|
||||
|
||||
untyped setImmediate (eventLoop);
|
||||
|
||||
}
|
||||
|
||||
untyped setImmediate (eventLoop);
|
||||
|
||||
Reference in New Issue
Block a user