git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8948 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2008-07-08 23:18:16 +00:00
parent 27b3531c9b
commit 21c6841610
1 changed files with 4 additions and 3 deletions

View File

@ -1710,10 +1710,11 @@ static JSBool session_sleep(JSContext * cx, JSObject * obj, uintN argc, jsval *
if (argc > 0) { if (argc > 0) {
JS_ValueToInt32(cx, argv[0], &ms); JS_ValueToInt32(cx, argv[0], &ms);
}
if (ms <= 0) { if (ms <= 0) {
return JS_FALSE; return JS_FALSE;
} }
}
if (argc > 1) { if (argc > 1) {
if ((function = JS_ValueToFunction(cx, argv[1]))) { if ((function = JS_ValueToFunction(cx, argv[1]))) {