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