From: Anthony Minessale Date: Sat, 21 Feb 2009 22:59:59 +0000 (+0000) Subject: doh X-Git-Tag: v1.0.4~1874 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=acea8a9f355996d6481984b9a03db54c68f7b409;p=thirdparty%2Ffreeswitch.git doh git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12226 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c b/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c index b4e1143697..9e4f03a267 100644 --- a/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c +++ b/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c @@ -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;