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

Unified Diff: net/spdy/spdy_session.cc

Issue 10821086: Fix bug in SpdySession (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix sleevi comments. Created 8 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
« no previous file with comments | « no previous file | net/spdy/spdy_session_spdy2_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session.cc
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc
index c372b87ba821f8e34a95ea21957d08850f5c8639..0e859c50c9340eac66f1d362052c2821d03de073 100644
--- a/net/spdy/spdy_session.cc
+++ b/net/spdy/spdy_session.cc
@@ -1016,10 +1016,10 @@ void SpdySession::CloseAllStreams(net::Error status) {
while (!created_streams_.empty()) {
CreatedStreamSet::iterator it = created_streams_.begin();
- const scoped_refptr<SpdyStream>& stream = *it;
+ const scoped_refptr<SpdyStream> stream = *it;
+ created_streams_.erase(it);
LogAbandonedStream(stream, status);
stream->OnClose(status);
- created_streams_.erase(it);
}
// We also need to drain the queue.
« no previous file with comments | « no previous file | net/spdy/spdy_session_spdy2_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698