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,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) {