From 21c6841610db2263fa7a0342367c153fae397cec Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Tue, 8 Jul 2008 23:18:16 +0000 Subject: [PATCH] update git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8948 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/languages/mod_spidermonkey/mod_spidermonkey.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c b/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c index a31157fb60..0cb7d7b468 100644 --- a/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c +++ b/src/mod/languages/mod_spidermonkey/mod_spidermonkey.c @@ -1710,9 +1710,10 @@ static JSBool session_sleep(JSContext * cx, JSObject * obj, uintN argc, jsval * if (argc > 0) { JS_ValueToInt32(cx, argv[0], &ms); - if (ms <= 0) { - return JS_FALSE; - } + } + + if (ms <= 0) { + return JS_FALSE; } if (argc > 1) {