From f4aaa4b9fb2652a6fe842043f01af53b24a9dde8 Mon Sep 17 00:00:00 2001 From: zhengsh Date: Thu, 24 Aug 2023 17:27:14 +0800 Subject: [PATCH] app_audiosocket: Fixed timeout with -1 to avoid busy loop. Resolves: asterisk#234 --- apps/app_audiosocket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.47.2