diff options
author | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-25 09:50:28 +0000 |
---|---|---|
committer | oej <oej@f38db490-d61c-443f-a65b-d21fe96a405b> | 2006-01-25 09:50:28 +0000 |
commit | 54aaae07e59e3af3d72fb9a5227c8b30163b62b2 (patch) | |
tree | 81a3796b6a6b4b2cea5e7891f7ae9480f78d8289 /channel.c | |
parent | 8be5ef95429ea7813b9ae80c36bee3c32627d788 (diff) |
Issue #6349 - patch by markster, imported from 1.2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@8633 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'channel.c')
-rw-r--r-- | channel.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -3298,11 +3298,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"); |