mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-28 07:01:07 +00:00
Merged revisions 89053 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r89053 | russell | 2007-11-06 14:18:49 -0600 (Tue, 06 Nov 2007) | 3 lines Fix init_classes() so that classes that actually do have files loaded aren't treated as empty, and immediately destroyed ... ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@89054 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1297,7 +1297,7 @@ static int init_classes(int reload)
|
|||||||
if (!moh->inuse)
|
if (!moh->inuse)
|
||||||
ast_moh_destroy_one(moh);
|
ast_moh_destroy_one(moh);
|
||||||
} else if (moh->total_files) {
|
} else if (moh->total_files) {
|
||||||
if (moh_scan_files(moh)) {
|
if (moh_scan_files(moh) <= 0) {
|
||||||
ast_log(LOG_WARNING, "No files found for class '%s'\n", moh->name);
|
ast_log(LOG_WARNING, "No files found for class '%s'\n", moh->name);
|
||||||
moh->delete = 1;
|
moh->delete = 1;
|
||||||
AST_LIST_REMOVE_CURRENT(&mohclasses, list);
|
AST_LIST_REMOVE_CURRENT(&mohclasses, list);
|
||||||
|
|||||||
Reference in New Issue
Block a user