]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-7174: #resolve #comment make sure not to leave any sessions readlocked in bridge_e...
authorMichael Jerris <mike@jerris.com>
Wed, 21 Jan 2015 22:16:56 +0000 (17:16 -0500)
committerMichael Jerris <mike@jerris.com>
Wed, 21 Jan 2015 22:16:56 +0000 (17:16 -0500)
src/switch_ivr_originate.c

index 00eebd1cc173b02183278d8a25cb9de413cd7293..506fc53bfdc21c238b62586b8b053390e954efbe 100644 (file)
@@ -1753,11 +1753,7 @@ static void *SWITCH_THREAD_FUNC early_thread_run(switch_thread_t *thread, void *
                        switch_core_session_t *session = originate_status[i].peer_session;
                        switch_channel_t *channel = originate_status[i].peer_channel;
 
-                       if (!session) {
-                               break;
-                       }
-                       
-                       if (!channel || !switch_channel_up(channel)) {
+                       if (!session || !channel || !switch_channel_up(channel)) {
                                continue;
                        }
                        
@@ -1836,7 +1832,7 @@ static void *SWITCH_THREAD_FUNC early_thread_run(switch_thread_t *thread, void *
                switch_core_session_t *session = originate_status[i].peer_session;
                switch_channel_t *channel = originate_status[i].peer_channel;
                
-               if (!session) break;
+               if (!session) continue;
 
                if (switch_core_codec_ready((&read_codecs[i]))) {
                        switch_core_codec_destroy(&read_codecs[i]);