mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 12:16:00 +00:00
Whoops... didn't want this to be returned to 0 each iteration.
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@74922 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -2072,6 +2072,7 @@ int ast_settimeout(struct ast_channel *c, int samples, int (*func)(void *data),
|
||||
|
||||
int ast_waitfordigit_full(struct ast_channel *c, int ms, int audiofd, int cmdfd)
|
||||
{
|
||||
int begin_digit = 0;
|
||||
|
||||
/* Stop if we're a zombie or need a soft hangup */
|
||||
if (ast_test_flag(c, AST_FLAG_ZOMBIE) || ast_check_hangup(c))
|
||||
@@ -2079,7 +2080,7 @@ int ast_waitfordigit_full(struct ast_channel *c, int ms, int audiofd, int cmdfd)
|
||||
/* Wait for a digit, no more than ms milliseconds total. */
|
||||
while (ms) {
|
||||
struct ast_channel *rchan;
|
||||
int outfd, begin_digit = 0;
|
||||
int outfd;
|
||||
|
||||
errno = 0;
|
||||
rchan = ast_waitfor_nandfds(&c, 1, &cmdfd, (cmdfd > -1) ? 1 : 0, NULL, &outfd, &ms);
|
||||
|
Reference in New Issue
Block a user