FS-8031 firefox gives up very fast, autoadj on any valid packet when dtls is not up

This commit is contained in:
Anthony Minessale 2015-09-22 13:03:02 -05:00
parent 6a9f936f72
commit 18b5b4cae0

View File

@ -1185,9 +1185,7 @@ static void handle_ice(switch_rtp_t *rtp_session, switch_rtp_ice_t *ice, void *d
rtp_session->wrong_addrs = 0;
} else {
if ((rtp_session->dtls->state != DS_READY || !ice->ready || !ice->rready)) {
if (elapsed > 500 || rtp_session->wrong_addrs > 1) {
do_adj = 1;
}
} else if (rtp_session->wrong_addrs > 5 || elapsed >= 3000) {
do_adj++;
}