Index: remoting/protocol/connection_to_client.cc |
diff --git a/remoting/protocol/connection_to_client.cc b/remoting/protocol/connection_to_client.cc |
index 4810d27e2dd7c5f8dc0f3adc229a435d1a05425a..f5cf592e444f42b5e4ca99ff805cffcf4eba562e 100644 |
--- a/remoting/protocol/connection_to_client.cc |
+++ b/remoting/protocol/connection_to_client.cc |
@@ -58,11 +58,9 @@ void ConnectionToClient::Disconnect() { |
CloseChannels(); |
- // If there is a channel then close it and release the reference. |
- if (session_.get()) { |
- session_->Close(); |
+ // If there is a session then release it, causing it to close. |
+ if (session_.get()) |
session_.reset(); |
- } |
} |
void ConnectionToClient::UpdateSequenceNumber(int64 sequence_number) { |