1
0
mirror of https://github.com/moparisthebest/curl synced 2025-02-28 09:21:50 -05:00

multi: Condition 'extrawait' is always true

Reported by Codacy.

Reviewed-by: Marcel Raad
Closes #5759
This commit is contained in:
Daniel Stenberg 2020-08-01 18:09:21 +02:00
parent c71d8bb56d
commit ca567dc5a4
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1281,7 +1281,7 @@ static CURLMcode Curl_multi_wait(struct Curl_multi *multi,
sleep_ms = timeout_ms;
/* when there are no easy handles in the multi, this holds a -1
timeout */
else if((sleep_ms < 0) && extrawait)
else if(sleep_ms < 0)
sleep_ms = timeout_ms;
Curl_wait_ms(sleep_ms);
}