Use Glib::usleep for portability

This commit is contained in:
Tim Mayberry 2013-08-30 09:43:44 +10:00
parent 8ddd12a60d
commit d76efc97a3
1 changed files with 1 additions and 1 deletions

View File

@ -198,7 +198,7 @@ http_get_thread (void *arg) {
char *res = NULL;
do {
res=a3_curl_http_get(url, &status);
if (status == 503) usleep(5000); // try-again
if (status == 503) Glib::usleep(5000); // try-again
} while (status == 503 && --timeout > 0);
if (status != 200 || !res) {