mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
app_audiosocket: Fixed timeout with -1 to avoid busy loop.
Resolves: asterisk#234
(cherry picked from commit eab40e755e
)
This commit is contained in:
committed by
Asterisk Development Team
parent
62e5a2720a
commit
d15a5c547f
@@ -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);
|
||||
|
Reference in New Issue
Block a user