Commit f0b6b950 authored by clemahieu's avatar clemahieu

close_stream erases from streams_ while it's being iterated over.

The destructor will already clean this structure up.
parent 025ec851
......@@ -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_);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment