From 79d46017e49d39b5de2d783cc3bcbeb696535bfc Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 4 May 2011 14:41:08 +0200 Subject: step: imudp utilizes interim new input module interface --- runtime/rsconf.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'runtime/rsconf.c') diff --git a/runtime/rsconf.c b/runtime/rsconf.c index 482622a1..8fc30cf3 100644 --- a/runtime/rsconf.c +++ b/runtime/rsconf.c @@ -345,6 +345,7 @@ static rsRetVal tellInputsActivateConfig(void) { cfgmodules_etry_t *node; + rsRetVal localRet; BEGINfunc DBGPRINTF("telling inputs to activate config %p\n", runConf); @@ -353,7 +354,12 @@ tellInputsActivateConfig(void) if(node->canActivate) { DBGPRINTF("activating config %p for module %s\n", runConf, node->pMod->pszName); - node->pMod->mod.im.activateCnf(node->modCnf); + localRet = node->pMod->mod.im.activateCnf(node->modCnf); + if(localRet != RS_RET_OK) { + errmsg.LogError(0, localRet, "activation of module %s failed", + node->pMod->pszName); + node->canActivate = 0; /* in a sense, could not activate... */ + } } node = module.GetNxtCnfType(runConf, node, eMOD_IN); } -- cgit v1.2.3