Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(243)

Unified Diff: remoting/host/desktop_session_agent.cc

Issue 11412254: Make sure IPC::ChannelProxy is destroyed on the same thread it was created on. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/desktop_session_agent.cc
diff --git a/remoting/host/desktop_session_agent.cc b/remoting/host/desktop_session_agent.cc
index e490af1abdc082567a03b970b4ca688e83c79b51..5c028d0f13ef1ed6953360e2e454839bd38d630f 100644
--- a/remoting/host/desktop_session_agent.cc
+++ b/remoting/host/desktop_session_agent.cc
@@ -17,6 +17,7 @@
namespace remoting {
DesktopSessionAgent::~DesktopSessionAgent() {
+ DCHECK(!network_channel_);
DCHECK(!video_capturer_);
}
@@ -141,6 +142,9 @@ bool DesktopSessionAgent::Start(const base::Closure& disconnected_task,
void DesktopSessionAgent::Stop() {
DCHECK(caller_task_runner()->BelongsToCurrentThread());
+ // Make sure the channel is closed.
+ network_channel_.reset();
+
// Stop the video capturer.
video_capture_task_runner()->PostTask(
FROM_HERE, base::Bind(&DesktopSessionAgent::StopVideoCapturer, this));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698