[asterisk-commits] russell: branch 1.4 r89053 - /branches/1.4/res/res_musiconhold.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Nov 6 14:18:50 CST 2007


Author: russell
Date: Tue Nov  6 14:18:49 2007
New Revision: 89053

URL: http://svn.digium.com/view/asterisk?view=rev&rev=89053
Log:
Fix init_classes() so that classes that actually do have files loaded aren't
treated as empty, and immediately destroyed ...

Modified:
    branches/1.4/res/res_musiconhold.c

Modified: branches/1.4/res/res_musiconhold.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/res/res_musiconhold.c?view=diff&rev=89053&r1=89052&r2=89053
==============================================================================
--- branches/1.4/res/res_musiconhold.c (original)
+++ branches/1.4/res/res_musiconhold.c Tue Nov  6 14:18:49 2007
@@ -1265,7 +1265,7 @@
 			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);




More information about the asterisk-commits mailing list