[Freeswitch-svn] [commit] r13217 - freeswitch/trunk/libs/esl/src
FreeSWITCH SVN
anthm at freeswitch.org
Fri May 1 08:00:31 PDT 2009
Author: anthm
Date: Fri May 1 10:00:31 2009
New Revision: 13217
Log:
ESL-12
Modified:
freeswitch/trunk/libs/esl/src/esl.c
Modified: freeswitch/trunk/libs/esl/src/esl.c
==============================================================================
--- freeswitch/trunk/libs/esl/src/esl.c (original)
+++ freeswitch/trunk/libs/esl/src/esl.c Fri May 1 10:00:31 2009
@@ -789,7 +789,9 @@
}
esl_mutex_lock(handle->mutex);
-
+ esl_event_safe_destroy(&handle->last_event);
+ esl_event_safe_destroy(&handle->last_ievent);
+
if (check_q && handle->race_event) {
qevent = handle->race_event;
handle->race_event = handle->race_event->next;
@@ -806,7 +808,6 @@
return ESL_SUCCESS;
}
- esl_event_safe_destroy(&handle->last_event);
memset(handle->header_buf, 0, sizeof(handle->header_buf));
c = handle->header_buf;
@@ -907,13 +908,11 @@
if (!esl_safe_strcasecmp(hval, "text/disconnect-notice") && revent->body) {
goto fail;
}
-
+
if (!esl_safe_strcasecmp(hval, "text/event-plain") && revent->body) {
esl_event_types_t et = ESL_EVENT_COMMAND;
char *body = strdup(revent->body);
- esl_event_safe_destroy(&handle->last_ievent);
-
esl_event_create(&handle->last_ievent, et);
beg = body;
More information about the Freeswitch-svn
mailing list