switch sleep to switch_yield
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@5805 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
6d091447b1
commit
e4416c56f8
|
@ -140,7 +140,7 @@ static switch_status_t my_on_hangup(switch_core_session_t *session)
|
|||
|
||||
for (cur_try = 0; cur_try < globals.retries; cur_try++) {
|
||||
if (cur_try > 0) {
|
||||
sleep(globals.delay);
|
||||
switch_yield(globals.delay * 1000000);
|
||||
}
|
||||
curl_easy_perform(curl_handle);
|
||||
curl_easy_getinfo(curl_handle, CURLINFO_RESPONSE_CODE, &httpRes);
|
||||
|
|
Loading…
Reference in New Issue