| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "remoting/host/chromoting_host.h" | 5 #include "remoting/host/chromoting_host.h" |
| 6 | 6 |
| 7 #include "base/stl_util-inl.h" | 7 #include "base/stl_util-inl.h" |
| 8 #include "base/task.h" | 8 #include "base/task.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "remoting/base/constants.h" | 10 #include "remoting/base/constants.h" |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 // Disconnect all clients. | 248 // Disconnect all clients. |
| 249 if (client_) { | 249 if (client_) { |
| 250 client_->Disconnect(); | 250 client_->Disconnect(); |
| 251 } | 251 } |
| 252 | 252 |
| 253 // Disconnect from the talk network. | 253 // Disconnect from the talk network. |
| 254 if (jingle_client_) { | 254 if (jingle_client_) { |
| 255 jingle_client_->Close(); | 255 jingle_client_->Close(); |
| 256 } | 256 } |
| 257 | 257 |
| 258 // Stop the heartbeat sender. |
| 259 if (heartbeat_sender_) { |
| 260 heartbeat_sender_->Stop(); |
| 261 } |
| 262 |
| 258 // Lastly call the shutdown task. | 263 // Lastly call the shutdown task. |
| 259 if (shutdown_task_.get()) { | 264 if (shutdown_task_.get()) { |
| 260 shutdown_task_->Run(); | 265 shutdown_task_->Run(); |
| 261 } | 266 } |
| 262 } | 267 } |
| 263 | 268 |
| 264 } // namespace remoting | 269 } // namespace remoting |
| OLD | NEW |