diff options
-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 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); |