From ef6704f279e8a331a8783f067bec99718940c83a Mon Sep 17 00:00:00 2001 From: Nanang Izzuddin Date: Tue, 3 Sep 2013 03:08:32 +0000 Subject: 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 --- pjnath/src/pjnath/ice_strans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pjnath') 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); } -- cgit v1.2.3