From 01b90d909240ac227445670ada6383661deef95d Mon Sep 17 00:00:00 2001 From: Joshua Colp Date: Thu, 12 Mar 2009 16:52:45 +0000 Subject: [PATCH] Fix logic flaw in previous commit. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@181660 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- res/res_musiconhold.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/res/res_musiconhold.c b/res/res_musiconhold.c index 5fe2e4157c..b034f4ddfc 100644 --- a/res/res_musiconhold.c +++ b/res/res_musiconhold.c @@ -557,7 +557,7 @@ static void *monmp3thread(void *data) } res = 8 * MOH_MS_INTERVAL; /* 8 samples per millisecond */ } - if ((strncasecmp(class->dir, "http://", 7) || !strcasecmp(class->dir, "nodir")) && AST_LIST_EMPTY(&class->members)) + if ((strncasecmp(class->dir, "http://", 7) && strncasecmp(class->dir, "nodir")) && AST_LIST_EMPTY(&class->members)) continue; /* Read mp3 audio */ len = ast_codec_get_len(class->format, res); -- 2.47.2