diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-06 20:18:49 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-11-06 20:18:49 +0000 |
commit | c98ff945a5f8cbd8a99b206255f149b95e1bf4cd (patch) | |
tree | a33e9737f81be7377ff359e89fb6f3211f222e37 /res/res_musiconhold.c | |
parent | e30e4a941b8d59dccc6f329dc3efe710d0f1019b (diff) |
Fix init_classes() so that classes that actually do have files loaded aren't
treated as empty, and immediately destroyed ...
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@89053 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_musiconhold.c')
-rw-r--r-- | res/res_musiconhold.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 1680cffea..b1955825a 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -1265,7 +1265,7 @@ static int init_classes(int reload) if (!moh->inuse) ast_moh_destroy_one(moh); } 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); moh->delete = 1; AST_LIST_REMOVE_CURRENT(&mohclasses, list); |