asio_client_session_impl.cc: fixes situation where user is not notified about closed session when remote server sent GOAWAY

This commit is contained in:
Jan Hykel 2019-09-10 11:45:28 +02:00
parent f8933fe504
commit 83dff3f009
1 changed files with 1 additions and 0 deletions

View File

@ -710,6 +710,7 @@ void session_impl::do_write() {
if (wblen_ == 0) { if (wblen_ == 0) {
if (should_stop()) { if (should_stop()) {
call_error_cb(make_error_code(static_cast<nghttp2_error>(NGHTTP2_INTERNAL_ERROR)));
stop(); stop();
} }
return; return;