From 92945f8a01851c6833d3f0106a7b6333a7d1c507 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Mon, 26 Nov 2012 18:09:04 -0600 Subject: [PATCH] FS-4836 --- src/switch_core_session.c | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/src/switch_core_session.c b/src/switch_core_session.c index e1093c50f3..c2fb0ea8d6 100644 --- a/src/switch_core_session.c +++ b/src/switch_core_session.c @@ -891,9 +891,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_queue_message(switch_core_se switch_core_session_kill_channel(session, SWITCH_SIG_BREAK); - if (switch_channel_test_flag(session->channel, CF_PROXY_MODE) || switch_channel_test_flag(session->channel, CF_THREAD_SLEEPING)) { - switch_core_session_wake_session_thread(session); - } + switch_core_session_wake_session_thread(session); + } return status; @@ -975,9 +974,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_queue_signal_data(switch_cor switch_core_session_kill_channel(session, SWITCH_SIG_BREAK); - if (switch_channel_test_flag(session->channel, CF_PROXY_MODE) || switch_channel_test_flag(session->channel, CF_THREAD_SLEEPING)) { - switch_core_session_wake_session_thread(session); - } + switch_core_session_wake_session_thread(session); + } return status; @@ -1048,9 +1046,7 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_queue_event(switch_core_sess *event = NULL; status = SWITCH_STATUS_SUCCESS; - if (switch_channel_test_flag(session->channel, CF_PROXY_MODE) || switch_channel_test_flag(session->channel, CF_THREAD_SLEEPING)) { - switch_core_session_wake_session_thread(session); - } + switch_core_session_wake_session_thread(session); } }