]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-4836
authorAnthony Minessale <anthm@freeswitch.org>
Tue, 27 Nov 2012 00:09:04 +0000 (18:09 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 27 Nov 2012 00:09:04 +0000 (18:09 -0600)
src/switch_core_session.c

index e1093c50f38ee8635b595eed1024a284799bcc01..c2fb0ea8d68c2df1efe9788e03664d5fc462ac2c 100644 (file)
@@ -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);
                }
        }