h2load: Cleanup

This commit is contained in:
Tatsuhiro Tsujikawa 2021-09-11 16:59:56 +09:00
parent bc8f88f5fa
commit 0066bf8eed
1 changed files with 1 additions and 2 deletions

View File

@ -126,8 +126,7 @@ int stream_close(ngtcp2_conn *conn, uint32_t flags, int64_t stream_id,
int Client::quic_stream_close(int64_t stream_id, uint64_t app_error_code) { int Client::quic_stream_close(int64_t stream_id, uint64_t app_error_code) {
auto s = static_cast<Http3Session *>(session.get()); auto s = static_cast<Http3Session *>(session.get());
if (s->close_stream(stream_id, app_error_code == 0 ? NGHTTP3_H3_NO_ERROR if (s->close_stream(stream_id, app_error_code) != 0) {
: app_error_code) != 0) {
return -1; return -1;
} }
return 0; return 0;