lib/curl/Multi: remove default timeout value

-1 is an illegal value and leads to CURLM_BAD_FUNCTION_ARGUMENT.  Our
API shouldn't imply this value.
This commit is contained in:
Max Kellermann 2024-08-20 10:28:37 +02:00 committed by Max Kellermann
parent c7b80b0828
commit 435f1eb6cc
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ public:
return running_handles; return running_handles;
} }
unsigned Wait(int timeout=-1) { unsigned Wait(int timeout) {
int numfds; int numfds;
auto code = curl_multi_wait(handle, nullptr, 0, timeout, auto code = curl_multi_wait(handle, nullptr, 0, timeout,
&numfds); &numfds);