]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-3750
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 13 Apr 2012 16:19:08 +0000 (11:19 -0500)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 13 Apr 2012 16:19:08 +0000 (11:19 -0500)
src/mod/event_handlers/mod_event_socket/mod_event_socket.c

index 8863476ed5f44eb9012aaca08b75a74704db587b..0b071b9c129ddda37d8fa59e18fd706828fc5c01 100644 (file)
@@ -2067,12 +2067,8 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
                        if (async) {
                                if ((status = switch_core_session_queue_private_event(listener->session, event, SWITCH_FALSE)) == SWITCH_STATUS_SUCCESS) {
                                        switch_snprintf(reply, reply_len, "+OK");
-                               } else if (status == SWITCH_STATUS_TERM) {
-                                       switch_snprintf(reply, reply_len, "-ERR closed queue");
-                                       status = SWITCH_STATUS_SUCCESS;
                                } else {
                                        switch_snprintf(reply, reply_len, "-ERR memory error");
-                                       status = SWITCH_STATUS_SUCCESS;
                                }
                        } else {
                                switch_ivr_parse_event(listener->session, *event);
@@ -2082,12 +2078,8 @@ static switch_status_t parse_command(listener_t *listener, switch_event_t **even
                        if (!zstr(uuid) && (session = switch_core_session_locate(uuid))) {
                                if ((status = switch_core_session_queue_private_event(session, event, SWITCH_FALSE)) == SWITCH_STATUS_SUCCESS) {
                                        switch_snprintf(reply, reply_len, "+OK");
-                               } else if (status == SWITCH_STATUS_TERM) {
-                                       switch_snprintf(reply, reply_len, "-ERR closed queue");
-                                       status = SWITCH_STATUS_SUCCESS;
                                } else {
                                        switch_snprintf(reply, reply_len, "-ERR memory error");
-                                       status = SWITCH_STATUS_SUCCESS;
                                }
                                switch_core_session_rwunlock(session);
                        } else {