summaryrefslogtreecommitdiff
path: root/pjnath
diff options
context:
space:
mode:
authorBenny Prijono <bennylp@teluu.com>2012-07-09 08:18:58 +0000
committerBenny Prijono <bennylp@teluu.com>2012-07-09 08:18:58 +0000
commit108ad63d51c2210c49c356a424039e5fbe5ef7a9 (patch)
treedb1cfb0b33933811a07bab996186b8b4c5dcf5bd /pjnath
parent96606c8e90550101a5623a584673dc3b372e7b7c (diff)
Fixed #1551: Assertion in TURN code when shutdown or destroy is called more than once (thanks Guilherme Balena Versiani for the report)
git-svn-id: http://svn.pjsip.org/repos/pjproject/trunk@4201 74dad513-b988-da41-8d7b-12977e46ad98
Diffstat (limited to 'pjnath')
-rw-r--r--pjnath/src/pjnath/turn_session.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/pjnath/src/pjnath/turn_session.c b/pjnath/src/pjnath/turn_session.c
index 6d2dc15a..ea89e304 100644
--- a/pjnath/src/pjnath/turn_session.c
+++ b/pjnath/src/pjnath/turn_session.c
@@ -421,7 +421,10 @@ static void sess_shutdown(pj_turn_session *sess,
/* This may recursively call this function again with
* state==PJ_TURN_STATE_DEALLOCATED.
*/
+ /* No need to deallocate as we're already deallocating!
+ * See https://trac.pjsip.org/repos/ticket/1551
send_refresh(sess, 0);
+ */
break;
case PJ_TURN_STATE_DEALLOCATED:
case PJ_TURN_STATE_DESTROYING: