]> git.mxchange.org Git - simgear.git/commitdiff
HTTP/curl - pick up sleep value
authorJames Turner <zakalawe@mac.com>
Thu, 24 Mar 2016 18:41:30 +0000 (18:41 +0000)
committerJames Turner <zakalawe@mac.com>
Thu, 24 Mar 2016 18:41:30 +0000 (18:41 +0000)
simgear/io/HTTPClient.cxx

index 5ec7386b724aaf232fb59dd2d89adac48b4f522a..03302e51e0d0d0f46eac1efc93801dfd2762f2fd 100644 (file)
@@ -817,6 +817,7 @@ void Client::update(int waitTimeout)
         SG_LOG(SG_IO, SG_ALERT, "CurlMSG:" << msg->msg);
       }
     } // of curl message processing loop
+    SGTimeStamp::sleepForMSec(waitTimeout);
 #else
     if (!d->poller.hasChannels() && (waitTimeout > 0)) {
         SGTimeStamp::sleepForMSec(waitTimeout);