git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12884 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Anthony Minessale 2009-04-02 14:16:58 +00:00
parent 190075abfb
commit beb18d14e9
1 changed files with 2 additions and 2 deletions

View File

@ -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);