diff --git a/red/nodes/Flow.js b/red/nodes/Flow.js index 8eea60831..4f56b0daf 100644 --- a/red/nodes/Flow.js +++ b/red/nodes/Flow.js @@ -301,7 +301,6 @@ Flow.prototype.start = function() { if (this.missingTypes.length > 0) { throw new Error("missing types"); } - events.emit("nodes-starting"); for (var id in this.nodes) { @@ -435,7 +434,13 @@ Flow.prototype.applyConfig = function(config,type) { } var flow = this; + if (type != "full") { + log.info("Stopping modified "+type); + } return this.stop(activeNodesToStop).then(function() { + if (type != "full") { + log.info("Stopped modified "+type); + } flow.parseConfig(config); for (var i=0;i 0) { @@ -177,7 +143,10 @@ var flowNodes = module.exports = { }, stopFlows: function() { log.info("Stopping flows"); - return activeFlow.stop(); + return activeFlow.stop().then(function() { + log.info("Stopped flows"); + return; + }); } };