diff options
Diffstat (limited to 'net/spdy/spdy_session.cc')
-rw-r--r-- | net/spdy/spdy_session.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/spdy/spdy_session.cc b/net/spdy/spdy_session.cc index bc9be5e..b1ba0f1 100644 --- a/net/spdy/spdy_session.cc +++ b/net/spdy/spdy_session.cc @@ -178,6 +178,8 @@ SpdySession::SpdySession(const HostPortPair& host_port_pair, } SpdySession::~SpdySession() { + state_ = CLOSED; + // Cleanup all the streams. CloseAllStreams(net::ERR_ABORTED); @@ -763,8 +765,8 @@ void SpdySession::CloseSessionOnError(net::Error err) { if (state_ != CLOSED) { state_ = CLOSED; error_ = err; - CloseAllStreams(err); RemoveFromPool(); + CloseAllStreams(err); } } |