- Timestamp:
- Jul 14, 2012 12:49:36 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjnath/src/pjnath/ice_strans.c
r4203 r4205 504 504 } 505 505 506 /* It's possible that we end up without any candidates */ 507 if (comp->cand_cnt == 0) { 508 PJ_LOG(4,(ice_st->obj_name, 509 "Error: no candidate is created due to settings")); 510 return PJ_EINVAL; 511 } 512 506 513 return PJ_SUCCESS; 507 514 } … … 1549 1556 --comp->default_cand; 1550 1557 } else if (comp->default_cand == idx) { 1551 comp->default_cand = !idx;1558 comp->default_cand = 0; 1552 1559 } 1553 1560 … … 1577 1584 if (cand) 1578 1585 cand->status = status; 1579 if (!ice_st->cfg.stun.ignore_stun_error ) {1586 if (!ice_st->cfg.stun.ignore_stun_error || comp->cand_cnt==1) { 1580 1587 sess_fail(ice_st, PJ_ICE_STRANS_OP_INIT, 1581 1588 "STUN binding request failed", status);
Note: See TracChangeset
for help on using the changeset viewer.