Use Glib::usleep for portability
authorTim Mayberry <mojofunk@gmail.com>
Thu, 29 Aug 2013 23:43:44 +0000 (09:43 +1000)
committerTim Mayberry <mojofunk@gmail.com>
Fri, 6 Sep 2013 04:31:31 +0000 (14:31 +1000)
gtk2_ardour/video_image_frame.cc

index 864aca4bb98175386997f3b2b54e391b5c4fcec7..58e0d68d71eeaef1b86808a306f566fdfb3ec9be 100644 (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) {