]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
doh
authorAnthony Minessale <anthony.minessale@gmail.com>
Sat, 21 Feb 2009 22:59:59 +0000 (22:59 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Sat, 21 Feb 2009 22:59:59 +0000 (22:59 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12226 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_spidermonkey/mod_spidermonkey.c

index b4e1143697cb0b27080c16c8bb91f765d81b0b19..9e4f03a2677f2985e43621da8d0ad54dae647d23 100644 (file)
@@ -1190,8 +1190,6 @@ static switch_status_t js_stream_input_callback(switch_core_session_t *session,
        switch_file_handle_t *fh = cb_state->extra;
        struct js_session *jss = cb_state->session_state;
 
-       switch_dtmf_t *wtfdtmf = (switch_dtmf_t *) input;
-
        if ((status = js_common_callback(session, input, itype, buf, buflen)) != SWITCH_STATUS_SUCCESS) {
                return status;
        }
@@ -1372,7 +1370,7 @@ static JSBool session_flush_events(JSContext * cx, JSObject * obj, uintN argc, j
                return JS_TRUE;
        }
 
-       while (switch_core_session_dequeue_event(jss->session, &event) == SWITCH_STATUS_SUCCESS) {
+       while (switch_core_session_dequeue_event(jss->session, &event, SWITCH_FALSE) == SWITCH_STATUS_SUCCESS) {
                switch_event_destroy(&event);
        }
 
@@ -2266,7 +2264,7 @@ static JSBool session_get_event(JSContext * cx, JSObject * obj, uintN argc, jsva
 
        METHOD_SANITY_CHECK();
 
-       if (switch_core_session_dequeue_event(jss->session, &event) == SWITCH_STATUS_SUCCESS) {
+       if (switch_core_session_dequeue_event(jss->session, &event, SWITCH_FALSE) == SWITCH_STATUS_SUCCESS) {
                JSObject *Event;
                struct event_obj *eo;