mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-14 16:15:04 +00:00
ESL-12
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13217 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
3e220c9565
commit
b4a30ae134
@ -789,6 +789,8 @@ ESL_DECLARE(esl_status_t) esl_recv_event(esl_handle_t *handle, int check_q, esl_
|
||||
}
|
||||
|
||||
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;
|
||||
@ -806,7 +808,6 @@ ESL_DECLARE(esl_status_t) esl_recv_event(esl_handle_t *handle, int check_q, esl_
|
||||
return ESL_SUCCESS;
|
||||
}
|
||||
|
||||
esl_event_safe_destroy(&handle->last_event);
|
||||
memset(handle->header_buf, 0, sizeof(handle->header_buf));
|
||||
|
||||
c = handle->header_buf;
|
||||
@ -912,8 +913,6 @@ ESL_DECLARE(esl_status_t) esl_recv_event(esl_handle_t *handle, int check_q, esl_
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user