| Index: net/tools/quic/quic_dispatcher.cc
|
| diff --git a/net/tools/quic/quic_dispatcher.cc b/net/tools/quic/quic_dispatcher.cc
|
| index 47d47fff818dbfafd21bf314c2f5da1c641a4e1f..c52f95c9a78e434ea04a99169fcd12033bef3c20 100644
|
| --- a/net/tools/quic/quic_dispatcher.cc
|
| +++ b/net/tools/quic/quic_dispatcher.cc
|
| @@ -359,13 +359,15 @@ QuicDispatcher::QuicPacketFate QuicDispatcher::ValidityChecks(
|
| void QuicDispatcher::CleanUpSession(SessionMap::iterator it,
|
| bool should_close_statelessly) {
|
| QuicConnection* connection = it->second->connection();
|
| - QuicEncryptedPacket* connection_close_packet =
|
| - connection->ReleaseConnectionClosePacket();
|
| +
|
| write_blocked_list_.erase(connection);
|
| - DCHECK(!should_close_statelessly || !connection_close_packet);
|
| + if (should_close_statelessly) {
|
| + DCHECK(connection->termination_packets() != nullptr &&
|
| + !connection->termination_packets()->empty());
|
| + }
|
| time_wait_list_manager_->AddConnectionIdToTimeWait(
|
| it->first, connection->version(), should_close_statelessly,
|
| - connection_close_packet);
|
| + connection->termination_packets());
|
| session_map_.erase(it);
|
| }
|
|
|
|
|