lib/curl/Request: merge two "try" blocks

This commit is contained in:
Max Kellermann 2018-01-29 23:25:03 +01:00
parent 19af364400
commit b6013a92e0
1 changed files with 0 additions and 6 deletions

View File

@ -171,13 +171,7 @@ CurlRequest::Done(CURLcode result) noexcept
msg = curl_easy_strerror(result); msg = curl_easy_strerror(result);
throw FormatRuntimeError("CURL failed: %s", msg); throw FormatRuntimeError("CURL failed: %s", msg);
} }
} catch (...) {
state = State::CLOSED;
handler.OnError(std::current_exception());
return;
}
try {
FinishBody(); FinishBody();
} catch (...) { } catch (...) {
state = State::CLOSED; state = State::CLOSED;