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

The destructor will already clean this structure up.
This commit is contained in:
clemahieu 2017-02-03 01:36:18 -06:00
parent 025ec85144
commit f0b6b9508d
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_);