close_stream erases from streams_ while it's being iterated over.
The destructor will already clean this structure up.
This commit is contained in:
parent
025ec85144
commit
f0b6b9508d
|
@ -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_);
|
||||
|
|
Loading…
Reference in New Issue