aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-08 06:54:36 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2005-08-08 06:54:36 +0000
commit53fb7866aba8a5605080dc284ac036f245352fb6 (patch)
tree477b535ccc4175725550d3edc9e1ecd4ffb3bb12 /channel.c
parent830d3364828ce1f4033f2cc24f67315923f08e1b (diff)
Don't wait longer than our timeout for something to happen (bug #4653)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6309 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rwxr-xr-xchannel.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/channel.c b/channel.c
index eebcd517d..ee076ee3b 100755
--- a/channel.c
+++ b/channel.c
@@ -2879,7 +2879,7 @@ static int ast_generic_bridge(int *playitagain, int *playit, struct ast_channel
/* Copy voice back and forth between the two channels. Give the peer
the ability to transfer calls with '#<extension' syntax. */
struct ast_channel *cs[3];
- int to = -1;
+ int to;
struct ast_frame *f;
struct ast_channel *who = NULL;
void *pvt0, *pvt1;
@@ -2922,8 +2922,10 @@ static int ast_generic_bridge(int *playitagain, int *playit, struct ast_channel
res = -3;
break;
}
-
- }
+ to = time_left_ms;
+ } else
+ to = -1;
+
who = ast_waitfor_n(cs, 2, &to);
if (!who) {