1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Make RED.stop as per @knollery suggestion.

This commit is contained in:
Dave C-J 2013-10-13 10:25:01 +01:00
parent 1fb185d081
commit e60120f7c9
2 changed files with 8 additions and 8 deletions

4
red.js
View File

@ -71,7 +71,7 @@ process.on('uncaughtException',function(err) {
}); });
process.on('SIGINT', function () { process.on('SIGINT', function () {
RED.nodes.closedown(); RED.stop();
console.log("Exiting Node-RED. Thank you."); util.log('[red] Exiting Node-RED. Thank you.');
process.exit(); process.exit();
}); });

View File

@ -33,10 +33,10 @@ var RED = {
}, },
start: server.start, start: server.start,
nodes: nodes, nodes: nodes,
library: library, library: library,
events: events events: events,
stop: nodes.closedown,
}; };
RED.__defineGetter__("app", function() { return server.app }); RED.__defineGetter__("app", function() { return server.app });