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

Commit

Permalink
Merge pull request #919 from pagespeed/oschaaf-trunk-tracking-native-…
Browse files Browse the repository at this point in the history
…fetcher-pull-755

Call async_fetch_->Done after all usages.
  • Loading branch information
oschaaf committed Feb 18, 2015
2 parents 1ea7e3e + d1f2a43 commit bcba22d
Showing 1 changed file with 1 addition and 4 deletions.
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

0 comments on commit bcba22d

Please sign in to comment.