| Index: google_apis/gcm/engine/fake_connection_handler.cc
|
| diff --git a/google_apis/gcm/engine/fake_connection_handler.cc b/google_apis/gcm/engine/fake_connection_handler.cc
|
| index dbffbcea0608a9e2454e7212468bba8075cd8578..243c28068492a345ccab779dec14d2161891d128 100644
|
| --- a/google_apis/gcm/engine/fake_connection_handler.cc
|
| +++ b/google_apis/gcm/engine/fake_connection_handler.cc
|
| @@ -32,7 +32,8 @@ FakeConnectionHandler::FakeConnectionHandler(
|
| write_callback_(write_callback),
|
| fail_login_(false),
|
| fail_send_(false),
|
| - initialized_(false) {
|
| + initialized_(false),
|
| + had_error_(false) {
|
| }
|
|
|
| FakeConnectionHandler::~FakeConnectionHandler() {
|
| @@ -51,10 +52,11 @@ void FakeConnectionHandler::Init(const mcs_proto::LoginRequest& login_request,
|
|
|
| void FakeConnectionHandler::Reset() {
|
| initialized_ = false;
|
| + had_error_ = false;
|
| }
|
|
|
| bool FakeConnectionHandler::CanSendMessage() const {
|
| - return initialized_;
|
| + return initialized_ && !had_error_;
|
| }
|
|
|
| void FakeConnectionHandler::SendMessage(
|
|
|