mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Bit more of a shuffle round of the shutdown handling
This commit is contained in:
3
red.js
3
red.js
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user