[Freeswitch-svn] [commit] r5805 - freeswitch/trunk/src/mod/xml_int/mod_xml_cdr
Freeswitch SVN
anthm at freeswitch.org
Thu Oct 4 17:39:00 EDT 2007
Author: anthm
Date: Thu Oct 4 17:39:00 2007
New Revision: 5805
Modified:
freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c
Log:
switch sleep to switch_yield
Modified: freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c
==============================================================================
--- freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c (original)
+++ freeswitch/trunk/src/mod/xml_int/mod_xml_cdr/mod_xml_cdr.c Thu Oct 4 17:39:00 2007
@@ -140,7 +140,7 @@
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);
More information about the Freeswitch-svn
mailing list