]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
reduce the yields
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 20 Feb 2009 19:51:34 +0000 (19:51 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 20 Feb 2009 19:51:34 +0000 (19:51 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12193 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_ivr_originate.c

index 9b56063489760e85a03a5ba82134787684925d3b..1e5d31f522da652820979bdfc71f2f8b25a92a39 100644 (file)
@@ -1562,7 +1562,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                                goto notready;
                                        }
                                        
-                                       switch_yield(100000);
+                                       switch_cond_next();
                                }
 
                                check_per_channel_timeouts(&oglobals, originate_status, and_argc, start);
@@ -1821,7 +1821,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_originate(switch_core_session_t *sess
                                        }
                                        
                                } else {
-                                       switch_yield(100000);
+                                       switch_cond_next();
                                }
                                
                        }