diff options
Diffstat (limited to 'res/res_musiconhold.c')
-rw-r--r-- | res/res_musiconhold.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index db7f8525c..7ed595557 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -1150,7 +1150,9 @@ static void moh_rescan_files(void) { i = ao2_iterator_init(mohclasses, 0); while ((c = ao2_iterator_next(&i))) { - moh_scan_files(c); + if (!strcasecmp(c->mode, "files")) { + moh_scan_files(c); + } ao2_ref(c, -1); } |