Bit more of a shuffle round of the shutdown handling

This commit is contained in:
Nicholas O'Leary
2013-10-13 19:14:39 +01:00
parent e60120f7c9
commit eb9b31a21b
4 changed files with 17 additions and 10 deletions

3
red.js
View File

@@ -72,6 +72,7 @@ process.on('uncaughtException',function(err) {
process.on('SIGINT', function () {
RED.stop();
util.log('[red] Exiting Node-RED. Thank you.');
// TODO: need to allow nodes to close asynchronously before terminating the
// process - ie, promises
process.exit();
});