| Index: remoting/host/token_validator_base.cc
|
| diff --git a/remoting/host/token_validator_base.cc b/remoting/host/token_validator_base.cc
|
| index 852879f77b8ec5d1715332c6b78a1efcc8df9aae..d461b578b03bbec2e3db52df3628f0d2090dd283 100644
|
| --- a/remoting/host/token_validator_base.cc
|
| +++ b/remoting/host/token_validator_base.cc
|
| @@ -127,11 +127,14 @@ void TokenValidatorBase::OnResponseStarted(net::URLRequest* source,
|
| DCHECK_NE(net_result, net::ERR_IO_PENDING);
|
| DCHECK_EQ(request_.get(), source);
|
|
|
| - if (net_result != net::OK)
|
| + if (net_result != net::OK) {
|
| + // Process all network errors in the same manner as read errors.
|
| + OnReadCompleted(request_.get(), net_result);
|
| return;
|
| + }
|
|
|
| int bytes_read = request_->Read(buffer_.get(), kBufferSize);
|
| - if (bytes_read > 0)
|
| + if (bytes_read != net::ERR_IO_PENDING)
|
| OnReadCompleted(request_.get(), bytes_read);
|
| }
|
|
|
|
|