diff options
Diffstat (limited to 'remoting/protocol/connection_to_client.cc')
-rw-r--r-- | remoting/protocol/connection_to_client.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/remoting/protocol/connection_to_client.cc b/remoting/protocol/connection_to_client.cc index 18943f4..4cf331b 100644 --- a/remoting/protocol/connection_to_client.cc +++ b/remoting/protocol/connection_to_client.cc @@ -36,14 +36,14 @@ protocol::Session* ConnectionToClient::session() { return session_.get(); } -void ConnectionToClient::Disconnect() { +void ConnectionToClient::Disconnect(ErrorCode error) { DCHECK(CalledOnValidThread()); CloseChannels(); // This should trigger OnConnectionClosed() event and this object // may be destroyed as the result. - session_->Close(); + session_->Close(error); } void ConnectionToClient::OnInputEventReceived(int64_t timestamp) { |