fix MODLANG-69

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9027 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-07-14 23:24:39 +00:00
parent d690632ba1
commit 73648db842
1 changed files with 3 additions and 1 deletions

View File

@ -1589,7 +1589,9 @@ static jsval check_hangup_hook(struct js_session *jss, jsval *rp)
}
JS_CallFunction(jss->cx, jss->obj, jss->on_hangup, argc, argv, &ret);
resp = JS_GetStringBytes(JS_ValueToString(jss->cx, ret));
ret = !strcasecmp(resp, "exit") ? JS_FALSE : JS_TRUE;
if (!switch_strlen_zero(resp)) {
ret = !strcasecmp(resp, "exit") ? JS_FALSE : JS_TRUE;
}
}
if (rp) {