| Index: remoting/host/chromoting_host.cc
|
| diff --git a/remoting/host/chromoting_host.cc b/remoting/host/chromoting_host.cc
|
| index 9f7de5613804b7f97250d119805a05965f50761a..653110bd58c07eb944f03919781ab2e603d54f5c 100644
|
| --- a/remoting/host/chromoting_host.cc
|
| +++ b/remoting/host/chromoting_host.cc
|
| @@ -181,7 +181,7 @@ void ChromotingHost::SetMaximumSessionDuration(
|
|
|
| ////////////////////////////////////////////////////////////////////////////
|
| // protocol::ClientSession::EventHandler implementation.
|
| -void ChromotingHost::OnSessionAuthenticated(ClientSession* client) {
|
| +bool ChromotingHost::OnSessionAuthenticated(ClientSession* client) {
|
| DCHECK(network_task_runner_->BelongsToCurrentThread());
|
|
|
| login_backoff_.Reset();
|
| @@ -209,9 +209,7 @@ void ChromotingHost::OnSessionAuthenticated(ClientSession* client) {
|
| OnClientAuthenticated(jid));
|
| authenticating_client_ = false;
|
|
|
| - if (reject_authenticating_client_) {
|
| - client->DisconnectSession();
|
| - }
|
| + return !reject_authenticating_client_;
|
| }
|
|
|
| void ChromotingHost::OnSessionChannelsConnected(ClientSession* client) {
|
|
|