]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
Revert last commit, nixevent ALL is what I wanted, not noevent
authorAndrew Thompson <andrew@hijacked.us>
Wed, 4 Aug 2010 16:38:31 +0000 (12:38 -0400)
committerAndrew Thompson <andrew@hijacked.us>
Wed, 4 Aug 2010 16:38:31 +0000 (12:38 -0400)
src/mod/event_handlers/mod_erlang_event/handle_msg.c

index 20bbb2a238444fbe75ad1d03b01aca64f6815b4a..4bceaaf4e8cd21e8e6174c05309a7ccb77316108 100644 (file)
@@ -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);