mirror of
https://github.com/signalwire/freeswitch.git
synced 2026-07-23 20:51:58 +00:00
FSCORE-471 and any other update related bugs
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15186 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
@@ -751,6 +751,11 @@ SWITCH_DECLARE(switch_status_t) switch_core_session_dequeue_message(switch_core_
|
||||
if (session->message_queue) {
|
||||
if ((status = (switch_status_t) switch_queue_trypop(session->message_queue, &pop)) == SWITCH_STATUS_SUCCESS) {
|
||||
*message = (switch_core_session_message_t *) pop;
|
||||
if ((*message)->delivery_time && (*message)->delivery_time > switch_epoch_time_now(NULL)) {
|
||||
switch_core_session_queue_message(session, *message);
|
||||
*message = NULL;
|
||||
status = SWITCH_STATUS_FALSE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user