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

Unified Diff: remoting/client/chromoting_client.cc

Issue 8495024: Access ChromotingHost::clients_ only on network thread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | remoting/host/chromoting_host.h » ('j') | remoting/host/chromoting_host.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/chromoting_client.cc
diff --git a/remoting/client/chromoting_client.cc b/remoting/client/chromoting_client.cc
index 327afa067dfa04bc9d65367bcc9acbc7e6b02725..e50d95d38456fdc2d877f53355effc5d0e5d9056 100644
--- a/remoting/client/chromoting_client.cc
+++ b/remoting/client/chromoting_client.cc
@@ -64,6 +64,12 @@ void ChromotingClient::Stop(const base::Closure& shutdown_task) {
return;
}
+ // Drop all pending packets.
+ while(!received_packets_.empty()) {
+ received_packets_.front().done.Run();
+ received_packets_.pop_front();
Wez 2011/11/09 02:32:22 This looks leaked from another CL?
Sergey Ulanov 2011/11/09 21:24:00 Yeah, it should be in a separate CL. I thought my
+ }
+
connection_->Disconnect(base::Bind(&ChromotingClient::OnDisconnected,
base::Unretained(this), shutdown_task));
}
« no previous file with comments | « no previous file | remoting/host/chromoting_host.h » ('j') | remoting/host/chromoting_host.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698