fix race
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@715 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
92a326c1da
commit
21d221a10f
|
@ -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) {
|
if (globals.supress_telephony_events && payload != tech_pvt->payload_num) {
|
||||||
|
switch_yield(1000);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -592,7 +593,7 @@ static switch_status exosip_read_frame(switch_core_session *session, switch_fram
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch_yield(100);
|
switch_yield(1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -772,6 +772,7 @@ static void *audio_bridge_thread(switch_thread *thread, void *obj)
|
||||||
data->running = -1;
|
data->running = -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
switch_yield(1000);
|
||||||
}
|
}
|
||||||
//switch_channel_hangup(chan_b);
|
//switch_channel_hangup(chan_b);
|
||||||
data->running = 0;
|
data->running = 0;
|
||||||
|
|
Loading…
Reference in New Issue