app_audiosocket: Fixed timeout with -1 to avoid busy loop.

Resolves: asterisk#234
(cherry picked from commit afe461419e)
This commit is contained in:
zhengsh 2023-08-24 17:27:14 +08:00 committed by Asterisk Development Team
parent c3f4b56886
commit 6ef2389e9b
1 changed files with 1 additions and 1 deletions

View File

@ -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);