aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-06 20:22:50 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2007-11-06 20:22:50 +0000
commitbe16c7c7bdbfd2ef110b210f9de46cc514e83007 (patch)
tree8a3dc95ecb5be23c4fc59820c3e7612c2c2bc034
parentb8fd607d04b69487e15c4b2df9f6e1627d92cf98 (diff)
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: http://svn.digium.com/svn/asterisk/trunk@89054 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--res/res_musiconhold.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c
index 4e2df23ab..374864b54 100644
--- a/res/res_musiconhold.c
+++ b/res/res_musiconhold.c
@@ -1297,7 +1297,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);