From: zhengsh Date: Thu, 24 Aug 2023 09:27:14 +0000 (+0800) Subject: app_audiosocket: Fixed timeout with -1 to avoid busy loop. X-Git-Tag: 18.20.0-rc1~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e879a5534aea9f33a8120ad2582a817a1f7169be;p=thirdparty%2Fasterisk.git app_audiosocket: Fixed timeout with -1 to avoid busy loop. Resolves: asterisk#234 (cherry picked from commit a2353f48032615305a43f7d0e9f3165b451cddcd) --- diff --git a/apps/app_audiosocket.c b/apps/app_audiosocket.c index 45d33964b0..ded88ccf7f 100644 --- a/apps/app_audiosocket.c +++ b/apps/app_audiosocket.c @@ -180,7 +180,7 @@ static int audiosocket_run(struct ast_channel *chan, const char *id, int svc) chanName = ast_channel_name(chan); while (1) { - + ms = -1; targetChan = ast_waitfor_nandfds(&chan, 1, &svc, 1, NULL, &outfd, &ms); if (targetChan) { f = ast_read(chan);