Add flow stopping trace messages

This commit is contained in:
Nick O'Leary
2017-07-21 11:15:40 +01:00
parent 2f88dc64fc
commit f0373cd789

View File

@@ -351,6 +351,7 @@ function stop(type,diff,muteLog) {
for (var id in activeFlows) {
if (activeFlows.hasOwnProperty(id)) {
var flowStateChanged = diff && (diff.added.indexOf(id) !== -1 || diff.removed.indexOf(id) !== -1);
log.debug("red/nodes/flows.stop : stopping flow : "+id);
promises = promises.concat(activeFlows[id].stop(flowStateChanged?null:stopList,removedList));
if (type === "full" || flowStateChanged || diff.removed.indexOf(id)!==-1) {
delete activeFlows[id];