From f0b6b9508de2c1d8be1b9bb226a9ca59a112ed0e Mon Sep 17 00:00:00 2001 From: clemahieu Date: Fri, 3 Feb 2017 01:36:18 -0600 Subject: [PATCH] close_stream erases from streams_ while it's being iterated over. The destructor will already clean this structure up. --- src/asio_server_http2_handler.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/src/asio_server_http2_handler.cc b/src/asio_server_http2_handler.cc index 0e64def3..5a784ed8 100644 --- a/src/asio_server_http2_handler.cc +++ b/src/asio_server_http2_handler.cc @@ -253,7 +253,6 @@ http2_handler::~http2_handler() { for (auto &p : streams_) { auto &strm = p.second; strm->response().impl().call_on_close(NGHTTP2_INTERNAL_ERROR); - close_stream(strm->get_stream_id()); } nghttp2_session_del(session_);