Merge pull request #795 from clemahieu/close_stream_iterator
close_stream erases from streams_ while it's being iterated over.
This commit is contained in:
commit
779ec50e73
|
@ -253,7 +253,6 @@ http2_handler::~http2_handler() {
|
||||||
for (auto &p : streams_) {
|
for (auto &p : streams_) {
|
||||||
auto &strm = p.second;
|
auto &strm = p.second;
|
||||||
strm->response().impl().call_on_close(NGHTTP2_INTERNAL_ERROR);
|
strm->response().impl().call_on_close(NGHTTP2_INTERNAL_ERROR);
|
||||||
close_stream(strm->get_stream_id());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
nghttp2_session_del(session_);
|
nghttp2_session_del(session_);
|
||||||
|
|
Loading…
Reference in New Issue