mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-09 00:28:59 +01:00
Fix usage of ReadRawData return value in ResourceRequestJob implementation (issue #534).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@619 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
parent
89ea7caae9
commit
808e89e01e
@ -68,9 +68,15 @@ class CefResourceRequestJobCallback : public CefCallback {
|
|||||||
|
|
||||||
dest_ = NULL;
|
dest_ = NULL;
|
||||||
dest_size_ = 0;
|
dest_size_ = 0;
|
||||||
|
} else {
|
||||||
|
// All done.
|
||||||
|
job_->NotifyDone(URLRequestStatus());
|
||||||
|
Detach();
|
||||||
}
|
}
|
||||||
} else {
|
} else if (!job_->GetStatus().is_io_pending()) {
|
||||||
// All done.
|
// Failed due to an error.
|
||||||
|
NOTREACHED() <<
|
||||||
|
"ReadRawData returned false without setting IO as pending";
|
||||||
job_->NotifyDone(URLRequestStatus());
|
job_->NotifyDone(URLRequestStatus());
|
||||||
Detach();
|
Detach();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user