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

Resolves: asterisk#234
(cherry picked from commit a2353f4803)
This commit is contained in:
zhengsh 2023-08-24 17:27:14 +08:00 committed by Asterisk Development Team
parent 03ff38beb6
commit e879a5534a
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);