]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
limit callback recursion to a happy number for all. FSCORE-6
authorMichael Jerris <mike@jerris.com>
Sat, 28 Apr 2007 14:48:18 +0000 (14:48 +0000)
committerMichael Jerris <mike@jerris.com>
Sat, 28 Apr 2007 14:48:18 +0000 (14:48 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5032 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_spidermonkey/mod_spidermonkey.c

index e957467dd4d38cb834e337cc17e912c68d7012b6..9104d083bd80ddc9f97e0ca749229b88d228aec2 100644 (file)
@@ -623,7 +623,7 @@ JSObject *new_js_event(switch_event_t *event, char *name, JSContext * cx, JSObje
        return Event;
 }
 
-#define MAX_STACK_DEPTH 12
+#define MAX_STACK_DEPTH 2
 
 static switch_status_t js_common_callback(switch_core_session_t *session, void *input, switch_input_type_t itype, void *buf, unsigned int buflen)
 {