pull/5458/merge
Dennis Bosmans 2026-03-24 10:15:09 -04:00 committed by GitHub
commit 12b1f66294
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 6 additions and 4 deletions

View File

@ -55,12 +55,14 @@ function init(runtime) {
state = 'stop';
if (!typeEventRegistered) {
events.on('type-registered',function(type) {
if (activeFlowConfig && activeFlowConfig.missingTypes.length > 0) {
var i = activeFlowConfig.missingTypes.indexOf(type);
var config = activeFlowConfig;
if (config && config.missingTypes.length > 0) {
var i = config.missingTypes.indexOf(type);
if (i != -1) {
log.info(log._("nodes.flows.registered-missing", {type:type}));
activeFlowConfig.missingTypes.splice(i,1);
if (activeFlowConfig.missingTypes.length === 0 && started) {
config.missingTypes.splice(i,1);
// Only start if config is still the active one
if (config === activeFlowConfig && config.missingTypes.length === 0 && started) {
events.emit("runtime-event",{id:"runtime-state",retain: true});
start();
}