From 6708de51e0baf88439cb95717f80bb74d4c5a303 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 15 Jan 2016 13:58:53 -0600 Subject: [PATCH] FS-8721 keep track of last on continue cases --- src/switch_core_media_bug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/switch_core_media_bug.c b/src/switch_core_media_bug.c index c97f277b4b..0dde1a7457 100644 --- a/src/switch_core_media_bug.c +++ b/src/switch_core_media_bug.c @@ -1104,14 +1104,15 @@ SWITCH_DECLARE(switch_status_t) switch_core_media_bug_remove_all_function(switch if (!switch_test_flag(session, SSF_DESTROYABLE) && ((bp->thread_id && bp->thread_id != switch_thread_self()) || switch_test_flag(bp, SMBF_LOCK))) { switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(session), SWITCH_LOG_DEBUG, "BUG is thread locked skipping.\n"); + last = bp; continue; } if (!zstr(function) && strcmp(bp->function, function)) { + last = bp; continue; } - if (bp->callback) { bp->callback(bp, bp->user_data, SWITCH_ABC_TYPE_CLOSE); }