lib/curl/Easy: add method Unpause()
This commit is contained in:
parent
ab39f64fc0
commit
8474599ed6
@ -162,6 +162,10 @@ public:
|
||||
SetOption(CURLOPT_HTTPPOST, post);
|
||||
}
|
||||
|
||||
bool Unpause() noexcept {
|
||||
return ::curl_easy_pause(handle, CURLPAUSE_CONT) == CURLE_OK;
|
||||
}
|
||||
|
||||
CurlString Escape(const char *string, int length=0) const noexcept {
|
||||
return CurlString(curl_easy_escape(handle, string, length));
|
||||
}
|
||||
|
@ -119,7 +119,7 @@ CurlRequest::Resume() noexcept
|
||||
{
|
||||
assert(registered);
|
||||
|
||||
curl_easy_pause(easy.Get(), CURLPAUSE_CONT);
|
||||
easy.Unpause();
|
||||
|
||||
global.InvalidateSockets();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user