avoiding rwlock
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15261 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
e6bd4b2f55
commit
7e1ca7a9f2
|
@ -618,12 +618,13 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_perform_receive_message(swit
|
|||
switch_core_session_get_uuid(session), SWITCH_LOG_DEBUG, "%s receive message [%s]\n",
|
||||
switch_channel_get_name(session->channel), message_names[message->message_id]);
|
||||
|
||||
|
||||
|
||||
if (message->message_id == SWITCH_MESSAGE_INDICATE_DISPLAY &&
|
||||
switch_true(switch_channel_get_variable(session->channel, SWITCH_IGNORE_DISPLAY_UPDATES_VARIABLE))) {
|
||||
switch_log_printf(SWITCH_CHANNEL_ID_LOG, message->_file, message->_func, message->_line,
|
||||
switch_core_session_get_uuid(session), SWITCH_LOG_DEBUG, "Ignoring display update.\n");
|
||||
return SWITCH_STATUS_SUCCESS;
|
||||
status = SWITCH_STATUS_SUCCESS;
|
||||
goto end;
|
||||
}
|
||||
|
||||
if (session->endpoint_interface->io_routines->receive_message) {
|
||||
|
@ -666,6 +667,8 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_perform_receive_message(swit
|
|||
break;
|
||||
}
|
||||
|
||||
end:
|
||||
|
||||
switch_core_session_free_message(&message);
|
||||
switch_core_session_rwunlock(session);
|
||||
|
||||
|
|
Loading…
Reference in New Issue