Flow.registerType should indicate if type was missing or not

This commit is contained in:
Nick O'Leary
2015-03-26 11:37:24 +00:00
parent 2a57d0b6d0
commit 9daeba02b5
3 changed files with 10 additions and 4 deletions

View File

@@ -462,8 +462,10 @@ Flow.prototype.typeRegistered = function(type) {
if (this.missingTypes.length === 0 && this.started) {
this.start();
}
return true;
}
}
return false;
}

View File

@@ -34,8 +34,7 @@ var activeConfig = [];
var activeConfigNodes = {};
events.on('type-registered',function(type) {
if (activeFlow) {
activeFlow.typeRegistered(type);
if (activeFlow && activeFlow.typeRegistered(type)) {
log.info("Missing type registered: "+type);
}
});