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:
parent
c7b80b0828
commit
435f1eb6cc
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue