mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-25 07:01:09 +00:00
app_audiosocket: Fixed timeout with -1 to avoid busy loop.
Resolves: asterisk#234
This commit is contained in:
committed by
asterisk-org-access-app[bot]
parent
f5e704b9d1
commit
f4aaa4b9fb
@@ -180,7 +180,7 @@ static int audiosocket_run(struct ast_channel *chan, const char *id, int svc)
|
|||||||
chanName = ast_channel_name(chan);
|
chanName = ast_channel_name(chan);
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
|
ms = -1;
|
||||||
targetChan = ast_waitfor_nandfds(&chan, 1, &svc, 1, NULL, &outfd, &ms);
|
targetChan = ast_waitfor_nandfds(&chan, 1, &svc, 1, NULL, &outfd, &ms);
|
||||||
if (targetChan) {
|
if (targetChan) {
|
||||||
f = ast_read(chan);
|
f = ast_read(chan);
|
||||||
|
Reference in New Issue
Block a user