aboutsummaryrefslogtreecommitdiffstats
path: root/channel.c
diff options
context:
space:
mode:
authoroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-25 09:46:43 +0000
committeroej <oej@f38db490-d61c-443f-a65b-d21fe96a405b>2006-01-25 09:46:43 +0000
commitad8a078e24efbd489d256b71d4bb92da61b8aaf8 (patch)
treeef845074697d903631987734c7771af57324ded0 /channel.c
parentb55167fb24681782f0acb14c66c2d6b18c77220b (diff)
Issue #6439 - the "timebomb" bug. Patch by Markster over GPRS
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.2@8632 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r--channel.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/channel.c b/channel.c
index ff5390c95..8f3391424 100644
--- a/channel.c
+++ b/channel.c
@@ -3235,11 +3235,14 @@ static enum ast_bridge_result ast_generic_bridge(struct ast_channel *c0, struct
res = AST_BRIDGE_RETRY;
break;
}
- to = ast_tvdiff_ms(bridge_end, ast_tvnow());
- if (to <= 0) {
- res = AST_BRIDGE_RETRY;
- break;
- }
+ if (bridge_end.tv_sec) {
+ to = ast_tvdiff_ms(bridge_end, ast_tvnow());
+ if (to <= 0) {
+ res = AST_BRIDGE_RETRY;
+ break;
+ }
+ } else
+ to = -1;
who = ast_waitfor_n(cs, 2, &to);
if (!who) {
ast_log(LOG_DEBUG, "Nobody there, continuing...\n");