From 9b30341170207b25020c47514a14effb77479bb9 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 1 May 2008 18:09:05 +0000 Subject: [PATCH] fix git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8235 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/switch_cpp.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/switch_cpp.cpp b/src/switch_cpp.cpp index b49de5dd5f..4c61c27a72 100644 --- a/src/switch_cpp.cpp +++ b/src/switch_cpp.cpp @@ -320,7 +320,7 @@ SWITCH_DECLARE_CONSTRUCTOR CoreSession::~CoreSession() if (session) { channel = switch_core_session_get_channel(session); - if (switch_test_flag(this, S_HUP)) { + if (switch_test_flag(this, S_HUP) && !switch_channel_test_flag(channel, CF_TRANSFER)) { switch_channel_hangup(channel, SWITCH_CAUSE_NORMAL_CLEARING); } switch_core_session_rwunlock(session);