Commit 4e061cb5 authored by Ivan Vilata-i-Balaguer's avatar Ivan Vilata-i-Balaguer
Browse files

Fix check for cancellation when fetching via self.

parent ef07ac04
......@@ -619,7 +619,7 @@ Client::State::fetch_via_self( Rq request, const UserAgentMetaData& meta
// Send request
http::async_write(con, request, yield[ec].tag("self-request"));
if (!ec && cancel_slot) {
if (cancel_slot) {
ec = asio::error::operation_aborted;
Supports Markdown
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