Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

Call async_fetch_->Done after all usages. #919

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 1 addition & 4 deletions src/ngx_fetch.cc
Expand Up @@ -464,9 +464,6 @@ void NgxFetch::CallbackDone(bool success) {
connection_ = NULL;
}

// TODO(oschaaf): see https://github.com/pagespeed/ngx_pagespeed/pull/755
async_fetch_->Done(success);

if (fetcher_ != NULL) {
if (fetcher_->track_original_content_length()
&& async_fetch_->response_headers()->Has(
Expand All @@ -476,7 +473,7 @@ void NgxFetch::CallbackDone(bool success) {
}
fetcher_->FetchComplete(this);
}

async_fetch_->Done(success);
async_fetch_ = NULL;
}

Expand Down