1
0
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:
Nick O'Leary 2019-07-01 12:42:11 +01:00
parent 55645e3730
commit f49d1ae860
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

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