Fix unit test failures due to timing issue around start/stop lifecyclce

This commit is contained in:
Nick O'Leary
2025-06-10 16:13:59 +01:00
parent 7f1eede6f8
commit 3e6a44fa65

View File

@@ -237,8 +237,12 @@ function start() {
}
}
return redNodes.loadContextsPlugin().then(function () {
redNodes.loadFlows().then(() => { redNodes.startFlows() }).catch(function(err) {});
started = true;
redNodes.loadFlows().then(() => {
if (started) {
redNodes.startFlows()
}
}).catch(function(err) {});
});
});
});