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

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..ce0d65921c60a2e341b4cd3b10dcfd089b009fca 100644
--- a/remoting/protocol/pepper_session.cc
+++ b/remoting/protocol/pepper_session.cc
@@ -191,6 +191,9 @@ const std::string& PepperSession::shared_secret() {
void PepperSession::Close() {
DCHECK(CalledOnValidThread());
+ // Ensure that we won't notify the callback again.
+ state_change_callback_.Reset();
+
if (state_ == CONNECTING || state_ == CONNECTED ||
state_ == CONNECTED_CHANNELS) {
// Send session-terminate message.

Powered by Google App Engine
This is Rietveld 408576698