Fix a possible crash when calling AdapterRequestJob::Kill().

This commit is contained in:
Cheng Zhao 2013-10-22 09:33:38 +08:00
parent 8bcb545119
commit 640f45a5b3

View file

@ -30,7 +30,7 @@ void AdapterRequestJob::Start() {
} }
void AdapterRequestJob::Kill() { void AdapterRequestJob::Kill() {
DCHECK(real_job_); if (real_job_) // Kill could happen when real_job_ is created.
real_job_->Kill(); real_job_->Kill();
} }