Chromium Code Reviews| Index: remoting/protocol/connection_to_client.cc |
| diff --git a/remoting/protocol/connection_to_client.cc b/remoting/protocol/connection_to_client.cc |
| index 7579463ffc357938f33af88da327bb715423bb0f..d31165fa79537616562eeb6460e52b31da562f3e 100644 |
| --- a/remoting/protocol/connection_to_client.cc |
| +++ b/remoting/protocol/connection_to_client.cc |
| @@ -162,10 +162,9 @@ void ConnectionToClient::CloseOnError() { |
| } |
| void ConnectionToClient::CloseChannels() { |
| - if (video_writer_.get()) |
| - video_writer_->Close(); |
| - if (client_control_sender_.get()) |
| - client_control_sender_->Close(); |
| + video_writer_.reset(); |
| + client_control_sender_.reset(); |
| + dispatcher_.reset(); |
|
Wez
2011/11/15 22:29:13
Are these changes related to this CL?
Sergey Ulanov
2011/11/16 00:01:33
Yes. Now these objects call session_ at destructio
|
| } |
| } // namespace protocol |