diff --git a/cef1/libcef/scheme_impl.cc b/cef1/libcef/scheme_impl.cc index b99ac5736..4d84143d1 100644 --- a/cef1/libcef/scheme_impl.cc +++ b/cef1/libcef/scheme_impl.cc @@ -498,9 +498,14 @@ class CefUrlRequestJob : public net::URLRequestJob { dest_ = NULL; dest_size_ = 0; + } else { + // All done. + job_->NotifyDone(URLRequestStatus()); } - } else { - // All done. + } else if (!job_->GetStatus().is_io_pending()) { + // Failed due to an error. + NOTREACHED() << + "ReadRawData returned false without setting IO as pending"; job_->NotifyDone(URLRequestStatus()); } }