]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
update
authorAnthony Minessale <anthony.minessale@gmail.com>
Tue, 8 Jul 2008 23:18:16 +0000 (23:18 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Tue, 8 Jul 2008 23:18:16 +0000 (23:18 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8948 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/languages/mod_spidermonkey/mod_spidermonkey.c

index a31157fb601d7a3342b81c5159ddfdba0fae9306..0cb7d7b468f09c5f162943bc1e193329cf0bbd5c 100644 (file)
@@ -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) {