diff options
author | Nanang Izzuddin <nanang@teluu.com> | 2013-09-03 03:08:32 +0000 |
---|---|---|
committer | Nanang Izzuddin <nanang@teluu.com> | 2013-09-03 03:08:32 +0000 |
commit | ef6704f279e8a331a8783f067bec99718940c83a (patch) | |
tree | ff36cec05d68aa762383b47cb22d4cea0dec0f94 /pjnath | |
parent | 87d0950ae8f3253244ce62e4659db34684c7aa2b (diff) |
Fix #1695: use pj_ice_sess_send_data() only when state is RUNNING.
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4585 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath')
-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); } |