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

Unified Diff: remoting/protocol/pepper_session.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
Index: remoting/protocol/pepper_session.cc
diff --git a/remoting/protocol/pepper_session.cc b/remoting/protocol/pepper_session.cc
index cb039deb19821f5c1dc280e928a9d707503cf0fc..3a351a3fa34bcb18ddd2d2cead18ccf4d79cff40 100644
--- a/remoting/protocol/pepper_session.cc
+++ b/remoting/protocol/pepper_session.cc
@@ -191,6 +191,8 @@ const std::string& PepperSession::shared_secret() {
void PepperSession::Close() {
DCHECK(CalledOnValidThread());
+ state_change_callback_.Reset();
Wez 2011/11/09 02:32:22 nit: Clarify that we do this to meet the no-more-c
Sergey Ulanov 2011/11/09 21:24:00 Done.
+
if (state_ == CONNECTING || state_ == CONNECTED ||
state_ == CONNECTED_CHANNELS) {
// Send session-terminate message.

Powered by Google App Engine
This is Rietveld 408576698