mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge pull request #4754 from node-red/4752-add-rewired-to-stoplist
Include rewired nodes when calculating Modified Flows stop list
This commit is contained in:
commit
1048b16f3c
@ -462,9 +462,8 @@ function stop(type,diff,muteLog,isDeploy) {
|
|||||||
if (type === 'nodes') {
|
if (type === 'nodes') {
|
||||||
stopList = diff.changed.concat(diff.removed);
|
stopList = diff.changed.concat(diff.removed);
|
||||||
} else if (type === 'flows') {
|
} else if (type === 'flows') {
|
||||||
stopList = diff.changed.concat(diff.removed).concat(diff.linked);
|
stopList = diff.changed.concat(diff.removed).concat(diff.linked).concat(diff.rewired);
|
||||||
}
|
}
|
||||||
|
|
||||||
events.emit("flows:stopping",{config: activeConfig, type: type, diff: diff})
|
events.emit("flows:stopping",{config: activeConfig, type: type, diff: diff})
|
||||||
|
|
||||||
// Stop the global flow object last
|
// Stop the global flow object last
|
||||||
|
Loading…
x
Reference in New Issue
Block a user