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:
+1
-4
@@ -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(
|
||||
@@ -476,7 +473,7 @@ void NgxFetch::CallbackDone(bool success) {
|
||||
}
|
||||
fetcher_->FetchComplete(this);
|
||||
}
|
||||
|
||||
async_fetch_->Done(success);
|
||||
async_fetch_ = NULL;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user