diff options
author | sergeyu <sergeyu@chromium.org> | 2015-10-30 16:11:53 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-10-30 23:12:33 +0000 |
commit | 09750216bef8bc9f2953e4eee9f66801bf034fa4 (patch) | |
tree | cb45b2450860bbd33581c7361cc720e05db706a6 /remoting/host/continue_window.cc | |
parent | 8fe437a06a287010a48833eb657dde801da306a4 (diff) | |
download | chromium_src-09750216bef8bc9f2953e4eee9f66801bf034fa4.zip chromium_src-09750216bef8bc9f2953e4eee9f66801bf034fa4.tar.gz chromium_src-09750216bef8bc9f2953e4eee9f66801bf034fa4.tar.bz2 |
Fix chromoting host to report error when closing connection.
Previously host would often close session without reporting the reason
to the client. Added two new error codes and updated the host to report
session termination reason when appropriate.
BUG=548261
Review URL: https://codereview.chromium.org/1430503002
Cr-Commit-Position: refs/heads/master@{#357215}
Diffstat (limited to 'remoting/host/continue_window.cc')
-rw-r--r-- | remoting/host/continue_window.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/remoting/host/continue_window.cc b/remoting/host/continue_window.cc index 35a7f90..9871591 100644 --- a/remoting/host/continue_window.cc +++ b/remoting/host/continue_window.cc @@ -54,11 +54,10 @@ void ContinueWindow::DisconnectSession() { disconnect_timer_.Stop(); if (client_session_control_.get()) - client_session_control_->DisconnectSession(); + client_session_control_->DisconnectSession(protocol::MAX_SESSION_LENGTH); } -ContinueWindow::ContinueWindow() { -} +ContinueWindow::ContinueWindow() {} void ContinueWindow::OnSessionExpired() { DCHECK(CalledOnValidThread()); |