From: Anthony Minessale Date: Thu, 5 Nov 2009 00:02:11 +0000 (+0000) Subject: tweak X-Git-Tag: v1.0.6~1502 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74bfa46aaa2e871bbabf566c3b8305962cb8d667;p=thirdparty%2Ffreeswitch.git tweak git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15362 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/switch_cpp.cpp b/src/switch_cpp.cpp index b52815128e..5d746ff98c 100644 --- a/src/switch_cpp.cpp +++ b/src/switch_cpp.cpp @@ -568,7 +568,9 @@ SWITCH_DECLARE(void) CoreSession::hangupState(void) { sanity_check_noreturn; this->begin_allow_threads(); - switch_core_session_hangup_state(session); + if (switch_channel_down(channel)) { + switch_core_session_hangup_state(session); + } this->end_allow_threads(); }