- correct use of timeoutms in native bridge

This commit is contained in:
MelwareDE 2005-11-27 18:16:19 +00:00
parent 21cce7a3e8
commit 1d54326696
1 changed files with 7 additions and 0 deletions

View File

@ -1391,7 +1391,14 @@ static CC_BRIDGE_RETURN capi_bridge(struct ast_channel *c0,
#endif
who = ast_waitfor_n(priority ? c0_priority : c1_priority, 2, &timeoutms);
if (!who) {
#ifdef CC_AST_BRIDGE_WITH_TIMEOUTMS
if (!timeoutms) {
ret = AST_BRIDGE_RETRY;
break;
}
#else
cc_log(LOG_DEBUG, "Ooh, empty read...\n");
#endif
continue;
}
f = ast_read(who);