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

Unified Diff: remoting/protocol/jingle_session.cc

Issue 7312013: Minor cleanups in JingleSession and JingleSessionManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: - Created 9 years, 5 months 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/jingle_session.cc
diff --git a/remoting/protocol/jingle_session.cc b/remoting/protocol/jingle_session.cc
index 9d3fea6f144940d8fee1f47b9f42b15c63e06a3a..5db43eea009111273f59eda853c07182840d9477 100644
--- a/remoting/protocol/jingle_session.cc
+++ b/remoting/protocol/jingle_session.cc
@@ -159,7 +159,7 @@ JingleSession::JingleSession(
}
JingleSession::~JingleSession() {
- DCHECK(closed_);
+ Close();
Wez 2011/07/06 21:24:25 Is this safe? Isn't it possible for |cricket_sess
Sergey Ulanov 2011/07/06 23:15:01 It may. Added line that resets |state_change_callb
Wez 2011/07/06 23:39:41 Actually, I think the only way to be sure that you
Sergey Ulanov 2011/07/07 00:50:30 We cannot destroy it because cricket::SessionManag
jingle_session_manager_->SessionDestroyed(this);
}

Powered by Google App Engine
This is Rietveld 408576698