Stop config nodes after flow nodes

Fixes #2876
This commit is contained in:
Nick O'Leary
2021-02-19 20:44:01 +00:00
parent f96ce2fd83
commit 5012568464
3 changed files with 55 additions and 2 deletions

View File

@@ -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]];