mirror of https://github.com/node-red/node-red.git
Ensure the subflow stop promise is waiting for before restarting
parent
55645e3730
commit
f49d1ae860
|
@ -277,7 +277,7 @@ class Flow {
|
|||
if (this.subflowInstanceNodes[stopList[i]]) {
|
||||
try {
|
||||
(function(subflow) {
|
||||
promises.push(stopNode(node,false).then(() => { subflow.stop() }));
|
||||
promises.push(stopNode(node,false).then(() => subflow.stop()));
|
||||
})(this.subflowInstanceNodes[stopList[i]]);
|
||||
} catch(err) {
|
||||
node.error(err);
|
||||
|
|
Loading…
Reference in New Issue