Merge pull request #919 from pagespeed/oschaaf-trunk-tracking-native-fetcher-pull-755

Call async_fetch_->Done after all usages.
This commit is contained in:
Otto van der Schaaf
2015-02-18 13:38:17 +01:00
+1 -4
View File
@@ -464,9 +464,6 @@ void NgxFetch::CallbackDone(bool success) {
connection_ = NULL; connection_ = NULL;
} }
// TODO(oschaaf): see https://github.com/pagespeed/ngx_pagespeed/pull/755
async_fetch_->Done(success);
if (fetcher_ != NULL) { if (fetcher_ != NULL) {
if (fetcher_->track_original_content_length() if (fetcher_->track_original_content_length()
&& async_fetch_->response_headers()->Has( && async_fetch_->response_headers()->Has(
@@ -476,7 +473,7 @@ void NgxFetch::CallbackDone(bool success) {
} }
fetcher_->FetchComplete(this); fetcher_->FetchComplete(this);
} }
async_fetch_->Done(success);
async_fetch_ = NULL; async_fetch_ = NULL;
} }