mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
SIGINT handler should wait for stop to complete before exit
This commit is contained in:
parent
22a5b339f7
commit
e6369820a9
5
red.js
5
red.js
@ -333,8 +333,7 @@ process.on('uncaughtException',function(err) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
process.on('SIGINT', function () {
|
process.on('SIGINT', function () {
|
||||||
RED.stop();
|
RED.stop().then(function() {
|
||||||
// TODO: need to allow nodes to close asynchronously before terminating the
|
|
||||||
// process - ie, promises
|
|
||||||
process.exit();
|
process.exit();
|
||||||
});
|
});
|
||||||
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user