mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-10-30 23:24:18 +00:00
cleanup
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@4832 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
1 parent
2b76e3e72f
commit
e47596fca5
4 files changed
+11
-5
No files matched your search
@@ -128,6 +128,7 @@ static JSBool event_construct(JSContext * cx, JSObject * obj, uintN argc, jsval
|
||||
if ((eo = malloc(sizeof(*eo)))) {
|
||||
|
||||
if (switch_name_event(ename, &etype) != SWITCH_STATUS_SUCCESS) {
|
||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "Unknown event %s\n", ename);
|
||||
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
|
||||
return JS_TRUE;
|
||||
}
|
||||
@@ -146,7 +147,7 @@ static JSBool event_construct(JSContext * cx, JSObject * obj, uintN argc, jsval
|
||||
}
|
||||
|
||||
} else {
|
||||
if (!switch_event_create(&event, etype) != SWITCH_STATUS_SUCCESS) {
|
||||
if (switch_event_create(&event, etype) != SWITCH_STATUS_SUCCESS) {
|
||||
*rval = BOOLEAN_TO_JSVAL(JS_FALSE);
|
||||
return JS_TRUE;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user