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
1 changed files with 1 additions and 1 deletions

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