| 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.
|
|
|