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

Unified Diff: remoting/jingle_glue/jingle_client.cc

Issue 5382008: Refactor ZLib and Verbatim encoders. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed comments Created 10 years 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 | « remoting/host/chromoting_host.cc ('k') | remoting/protocol/mock_objects.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/jingle_client.cc
diff --git a/remoting/jingle_glue/jingle_client.cc b/remoting/jingle_glue/jingle_client.cc
index 6237629250d17a8a806faf64c8d66bbc9d4f010b..6484e5a8dd0ff9564919552c5567abf7bb10f84d 100644
--- a/remoting/jingle_glue/jingle_client.cc
+++ b/remoting/jingle_glue/jingle_client.cc
@@ -168,6 +168,9 @@ void JingleClient::OnConnectionStateChanged(buzz::XmppEngine::State state) {
break;
case buzz::XmppEngine::STATE_CLOSED:
UpdateState(CLOSED);
+ // Client is destroyed by the TaskRunner after the client is
+ // closed. Reset the pointer so we don't try to use it later.
+ client_ = NULL;
break;
default:
NOTREACHED();
« no previous file with comments | « remoting/host/chromoting_host.cc ('k') | remoting/protocol/mock_objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698