mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Fix flow unit tests
This commit is contained in:
@@ -322,7 +322,10 @@ async function start(type,diff,muteLog,isDeploy) {
|
||||
return;
|
||||
}
|
||||
|
||||
const runtimeState = settings.get('runtimeFlowState') || 'start'
|
||||
let runtimeState
|
||||
try {
|
||||
runtimeState = settings.get('runtimeFlowState') || 'start'
|
||||
} catch (err) {}
|
||||
if (runtimeState === 'stop') {
|
||||
log.info(log._("nodes.flows.stopped-flows"));
|
||||
events.emit("runtime-event",{id:"runtime-state",payload:{ state: 'stop', deploy:isDeploy },retain:true});
|
||||
|
Reference in New Issue
Block a user