diff options
-rw-r--r-- | pjnath/src/pjnath/ice_strans.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pjnath/src/pjnath/ice_strans.c b/pjnath/src/pjnath/ice_strans.c index 95ca9571..0907af0a 100644 --- a/pjnath/src/pjnath/ice_strans.c +++ b/pjnath/src/pjnath/ice_strans.c @@ -1182,7 +1182,7 @@ PJ_DEF(pj_status_t) pj_ice_strans_sendto( pj_ice_strans *ice_st, * https://trac.pjsip.org/repos/ticket/1416: * Once ICE has failed, also send data with the default candidate. */ - if (ice_st->ice && ice_st->state < PJ_ICE_STRANS_STATE_FAILED) { + if (ice_st->ice && ice_st->state == PJ_ICE_STRANS_STATE_RUNNING) { if (comp->turn_sock) { pj_turn_sock_lock(comp->turn_sock); } |