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:
Tatsuhiro Tsujikawa 2017-02-04 11:37:43 +09:00 committed by GitHub
commit 779ec50e73
1 changed files with 0 additions and 1 deletions

View File

@ -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_);