]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
let any channel get messages
authorAnthony Minessale <anthony.minessale@gmail.com>
Thu, 23 Oct 2008 13:04:08 +0000 (13:04 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Thu, 23 Oct 2008 13:04:08 +0000 (13:04 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@10131 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/event_handlers/mod_event_socket/mod_event_socket.c

index ff72ac305604dc5e8a8a7f3017f00d54f7d1a2bf..8ae06ea38dbdfb94aaaa0096e6d926943033f2ab 100644 (file)
@@ -881,13 +881,6 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
                }
 
                if ((session = switch_core_session_locate(uuid))) {
-                       if (!switch_channel_test_flag(switch_core_session_get_channel(session), CF_CONTROLLED)) {
-                               switch_core_session_rwunlock(session);
-                               session = NULL;
-                       }
-               }
-
-               if (session) {
                        if ((status = switch_core_session_queue_private_event(session, event)) == SWITCH_STATUS_SUCCESS) {
                                switch_snprintf(reply, reply_len, "+OK");
                        } else {