mirror of
https://github.com/Sude-/lgogdownloader.git
synced 2025-02-08 16:33:22 +01:00
Don't call usleep if it's not necessary
This commit is contained in:
parent
f25c37074a
commit
23ded13050
@ -1402,6 +1402,7 @@ std::string Downloader::getResponse(const std::string& url)
|
||||
CURLcode result;
|
||||
do
|
||||
{
|
||||
if (config.iWait > 0)
|
||||
usleep(config.iWait); // Delay the request by specified time
|
||||
result = curl_easy_perform(curlhandle);
|
||||
response = memory.str();
|
||||
|
Loading…
x
Reference in New Issue
Block a user