From: Andrew Thompson Date: Wed, 4 Aug 2010 16:30:41 +0000 (-0400) Subject: Don't purge the event queue on session_noevents right now X-Git-Tag: v1.2-rc1~526^2~40^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3be2a2d936a43d815018a58ee7f4cc026366cee;p=thirdparty%2Ffreeswitch.git Don't purge the event queue on session_noevents right now --- diff --git a/src/mod/event_handlers/mod_erlang_event/handle_msg.c b/src/mod/event_handlers/mod_erlang_event/handle_msg.c index 4bceaaf4e8..20bbb2a238 100644 --- a/src/mod/event_handlers/mod_erlang_event/handle_msg.c +++ b/src/mod/event_handlers/mod_erlang_event/handle_msg.c @@ -836,14 +836,14 @@ static switch_status_t handle_msg_atom(listener_t *listener, erlang_msg * msg, e } else if (!strncmp(atom, "session_noevents", MAXATOMLEN)) { session_elem_t *session; if ((session = find_session_elem_by_pid(listener, &msg->from))) { - void *pop; - uint8_t x = 0; + //void *pop; + //uint8_t x = 0; /*purge the event queue */ - while (switch_queue_trypop(session->event_queue, &pop) == SWITCH_STATUS_SUCCESS); + /*while (switch_queue_trypop(session->event_queue, &pop) == SWITCH_STATUS_SUCCESS); for (x = 0; x <= SWITCH_EVENT_ALL; x++) { session->event_list[x] = 0; - } + }*/ /* wipe the hash */ switch_core_hash_destroy(&session->event_hash); switch_core_hash_init(&session->event_hash, session->pool);