[asterisk-commits] branch 1.2 - r8632 /branches/1.2/channel.c
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Wed Jan 25 02:46:45 MST 2006
Author: oej
Date: Wed Jan 25 03:46:43 2006
New Revision: 8632
URL: http://svn.digium.com/view/asterisk?rev=8632&view=rev
Log:
Issue #6439 - the "timebomb" bug. Patch by Markster over GPRS
Modified:
branches/1.2/channel.c
Modified: branches/1.2/channel.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/channel.c?rev=8632&r1=8631&r2=8632&view=diff
==============================================================================
--- branches/1.2/channel.c (original)
+++ branches/1.2/channel.c Wed Jan 25 03:46:43 2006
@@ -3235,11 +3235,14 @@
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");
More information about the asterisk-commits
mailing list