提交 beb18d14 authored 作者: Anthony Minessale's avatar Anthony Minessale

ESL-11

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12884 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 190075ab
......@@ -428,11 +428,11 @@ ESL_DECLARE(esl_status_t) esl_sendevent(esl_handle_t *handle, esl_event_t *event
{
char *txt;
if (!handle->connected) {
if (!handle->connected || !event) {
return ESL_FAIL;
}
esl_event_serialize(handle->last_ievent, &txt, ESL_TRUE);
esl_event_serialize(event, &txt, ESL_TRUE);
esl_log(ESL_LOG_DEBUG, "SEND EVENT\n%s\n", txt);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论