dect
/
asterisk
Archived
13
0
Fork 0

Don't try to continue loading cdr_sqlite3_custom on a module load failure (such as the config not existing)

Closes issue #10749, patch by seanbright.


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@82712 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
qwell 2007-09-17 21:52:07 +00:00
parent fb66f22837
commit cb3876e55f
1 changed files with 2 additions and 1 deletions

View File

@ -209,7 +209,8 @@ static int load_module(void)
ast_log(LOG_ERROR, "%s: Unable to register custom SQLite3 CDR handling\n", name);
return AST_MODULE_LOAD_DECLINE;
}
}
} else
return AST_MODULE_LOAD_DECLINE;
/* is the database there? */
snprintf(fn, sizeof(fn), "%s/master.db", ast_config_AST_LOG_DIR);