From 21d221a10fbc26158a5ff9b857b42b9924ece363 Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 1 Mar 2006 16:30:54 +0000 Subject: [PATCH] fix race git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@715 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/endpoints/mod_exosip/mod_exosip.c | 3 ++- src/switch_ivr.c | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mod/endpoints/mod_exosip/mod_exosip.c b/src/mod/endpoints/mod_exosip/mod_exosip.c index 43b0955830..a2efe4da9c 100644 --- a/src/mod/endpoints/mod_exosip/mod_exosip.c +++ b/src/mod/endpoints/mod_exosip/mod_exosip.c @@ -579,6 +579,7 @@ static switch_status exosip_read_frame(switch_core_session *session, switch_fram } if (globals.supress_telephony_events && payload != tech_pvt->payload_num) { + switch_yield(1000); continue; } @@ -592,7 +593,7 @@ static switch_status exosip_read_frame(switch_core_session *session, switch_fram break; } - switch_yield(100); + switch_yield(1000); } } else { diff --git a/src/switch_ivr.c b/src/switch_ivr.c index f7219f7a22..a1d1974cf5 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -772,6 +772,7 @@ static void *audio_bridge_thread(switch_thread *thread, void *obj) data->running = -1; } + switch_yield(1000); } //switch_channel_hangup(chan_b); data->running = 0;