]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
fix race
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 1 Feb 2008 22:06:12 +0000 (22:06 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 1 Feb 2008 22:06:12 +0000 (22:06 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7478 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index 483a181eca406d2335631d512581e4d76253ab14..c4cf7d96fcdf353802a2cf8319bfd3e8215b981b 100644 (file)
@@ -857,11 +857,11 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                        goto outer_for;
                                }
                                
-                               if (switch_core_session_running(peer_sessions[i])) {
-                                       if (!(flags & SOF_NOBLOCK)) {
-                                               switch_channel_set_state(peer_channels[i], CS_RING);
-                                       }
-                               } else {
+                               if (!switch_core_session_running(peer_sessions[i])) {
+                                       //if (!(flags & SOF_NOBLOCK)) {
+                    //switch_channel_set_state(peer_channels[i], CS_RING);
+                                       //}
+                    //} else {
                                        switch_core_session_thread_launch(peer_sessions[i]);
                                }
                        }