Fix crash in custom protocols caused by bad callback exec

This commit is contained in:
Paul Frazee 2017-10-25 21:01:53 -05:00
parent 042f84140d
commit c2d9e082cb

View file

@ -258,7 +258,9 @@ void URLRequestFetchJob::OnURLFetchComplete(const net::URLFetcher* source) {
HeadersCompleted();
return;
}
ReadRawDataComplete(0);
if (request_->status().is_io_pending()) {
ReadRawDataComplete(0);
}
} else {
NotifyStartError(fetcher_->GetStatus());
}