mirror of
https://github.com/node-red/node-red
synced 2024-11-22 07:58:04 +00:00
Add flow stopping trace messages
This commit is contained in:
parent
2f88dc64fc
commit
f0373cd789
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user