update
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8948 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
27b3531c9b
commit
21c6841610
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue