| 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();
|
|
|