mirror of
https://github.com/node-red/node-red.git
synced 2025-12-27 07:31:07 +01:00
Fix unit test failures due to timing issue around start/stop lifecyclce
This commit is contained in:
@@ -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) {});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user