[Freeswitch-svn] [commit] r4384 - freeswitch/trunk/src/mod/languages/mod_spidermonkey

Freeswitch SVN mikej at freeswitch.org
Fri Feb 23 17:43:12 EST 2007


Author: mikej
Date: Fri Feb 23 17:43:11 2007
New Revision: 4384

Modified:
   freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c

Log:
apiExecute, in js_api_execute, set the stream.write_function before doing switch_api_execute (fixes jira MODLANG-2)

Modified: freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c
==============================================================================
--- freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c	(original)
+++ freeswitch/trunk/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c	Fri Feb 23 17:43:11 2007
@@ -2300,8 +2300,8 @@
 		stream.data = retbuf;
 		stream.end = stream.data;
 		stream.data_size = sizeof(retbuf);
-		switch_api_execute(cmd, arg, session, &stream);
 		stream.write_function = switch_console_stream_write;
+		switch_api_execute(cmd, arg, session, &stream);
 
 		*rval = STRING_TO_JSVAL (JS_NewStringCopyZ(cx, retbuf));
 	} else {



More information about the Freeswitch-svn mailing list