mirror of
https://github.com/HackPlan/atom-shell.git
synced 2026-04-28 19:55:36 +08:00
Fix a possible crash when calling AdapterRequestJob::Kill().
This commit is contained in:
@@ -30,8 +30,8 @@ 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();
|
||||||
}
|
}
|
||||||
|
|
||||||
bool AdapterRequestJob::ReadRawData(net::IOBuffer* buf,
|
bool AdapterRequestJob::ReadRawData(net::IOBuffer* buf,
|
||||||
|
|||||||
Reference in New Issue
Block a user