From 1d53a51f9d37fb84b7d5264f84d5f83cac5cac58 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Thu, 14 Dec 2006 01:25:59 +0000 Subject: [PATCH] let scripts continue to run after calls end. All session members will return false once the call is dead (not these 2 funcs) git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3642 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- .../languages/mod_spidermonkey/mod_spidermonkey.c | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c b/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c index 3ab2a98800..dc19f1ca0e 100644 --- a/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c +++ b/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c @@ -1257,12 +1257,6 @@ static JSBool session_wait_for_media(JSContext *cx, JSObject *obj, uintN argc, j channel = switch_core_session_get_channel(jss->session); assert(channel != NULL); - if (!switch_channel_ready(channel)) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Session is not active!\n"); - *rval = BOOLEAN_TO_JSVAL( JS_FALSE ); - return JS_TRUE; - } - started = switch_time_now(); if (argc > 0) { @@ -1298,12 +1292,6 @@ static JSBool session_wait_for_answer(JSContext *cx, JSObject *obj, uintN argc, channel = switch_core_session_get_channel(jss->session); assert(channel != NULL); - if (!switch_channel_ready(channel)) { - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Session is not active!\n"); - *rval = BOOLEAN_TO_JSVAL( JS_FALSE ); - return JS_TRUE; - } - started = switch_time_now(); if (argc > 0) {