Commit 08a9a2ec authored by Tatsuhiro Tsujikawa's avatar Tatsuhiro Tsujikawa

asio: Fix bug when end() is called outside nghttp2 callback

parent 19f1785c
......@@ -404,7 +404,8 @@ void http2_handler::stream_error(int32_t stream_id, uint32_t error_code) {
void http2_handler::signal_write() {
if (!inside_callback_) {
initiate_write();
auto self = shared_from_this();
io_service_.post([self]() { self->initiate_write(); });
}
}
......
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