mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
@@ -308,6 +308,17 @@ class Flow {
|
||||
removedMap[id] = true;
|
||||
});
|
||||
|
||||
let nodesToStop = [];
|
||||
let configsToStop = [];
|
||||
stopList.forEach(id => {
|
||||
if (this.flow.configs[id]) {
|
||||
configsToStop.push(id);
|
||||
} else {
|
||||
nodesToStop.push(id);
|
||||
}
|
||||
});
|
||||
stopList = nodesToStop.concat(configsToStop);
|
||||
|
||||
var promises = [];
|
||||
for (i=0;i<stopList.length;i++) {
|
||||
var node = this.activeNodes[stopList[i]];
|
||||
|
||||
Reference in New Issue
Block a user