Commit 8474599e authored by Max Kellermann's avatar Max Kellermann

lib/curl/Easy: add method Unpause()

parent ab39f64f
...@@ -162,6 +162,10 @@ public: ...@@ -162,6 +162,10 @@ public:
SetOption(CURLOPT_HTTPPOST, post); 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 { CurlString Escape(const char *string, int length=0) const noexcept {
return CurlString(curl_easy_escape(handle, string, length)); return CurlString(curl_easy_escape(handle, string, length));
} }
......
...@@ -119,7 +119,7 @@ CurlRequest::Resume() noexcept ...@@ -119,7 +119,7 @@ CurlRequest::Resume() noexcept
{ {
assert(registered); assert(registered);
curl_easy_pause(easy.Get(), CURLPAUSE_CONT); easy.Unpause();
global.InvalidateSockets(); global.InvalidateSockets();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment