doh
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12226 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e66b78047a
commit
acea8a9f35
|
@ -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;
|
switch_file_handle_t *fh = cb_state->extra;
|
||||||
struct js_session *jss = cb_state->session_state;
|
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) {
|
if ((status = js_common_callback(session, input, itype, buf, buflen)) != SWITCH_STATUS_SUCCESS) {
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
@ -1372,7 +1370,7 @@ static JSBool session_flush_events(JSContext * cx, JSObject * obj, uintN argc, j
|
||||||
return JS_TRUE;
|
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);
|
switch_event_destroy(&event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2266,7 +2264,7 @@ static JSBool session_get_event(JSContext * cx, JSObject * obj, uintN argc, jsva
|
||||||
|
|
||||||
METHOD_SANITY_CHECK();
|
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;
|
JSObject *Event;
|
||||||
struct event_obj *eo;
|
struct event_obj *eo;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue