From 108ad63d51c2210c49c356a424039e5fbe5ef7a9 Mon Sep 17 00:00:00 2001 From: Benny Prijono Date: Mon, 9 Jul 2012 08:18:58 +0000 Subject: 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 --- pjnath/src/pjnath/turn_session.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pjnath') 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: -- cgit v1.2.3