]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
multi: Condition 'extrawait' is always true
authorDaniel Stenberg <daniel@haxx.se>
Sat, 1 Aug 2020 16:09:21 +0000 (18:09 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 1 Aug 2020 21:21:29 +0000 (23:21 +0200)
Reported by Codacy.

Reviewed-by: Marcel Raad
Closes #5759

lib/multi.c

index 1c3be72feed0c0f60ff141e861e9a2d24ac36753..75c76e8190c79a47a75dcc6de9f2c608917456d6 100644 (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);
     }