]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-8721 keep track of last on continue cases
authorAnthony Minessale <anthm@freeswitch.org>
Fri, 15 Jan 2016 19:58:53 +0000 (13:58 -0600)
committerAnthony Minessale <anthm@freeswitch.org>
Fri, 15 Jan 2016 19:58:59 +0000 (13:58 -0600)
src/switch_core_media_bug.c

index c97f277b4baed0fd7e5639787cc0353c4e05e331..0dde1a745717b6e9e5405ec27a47c49605450e17 100644 (file)
@@ -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);
                        }