Skip to content

Commit 0ddb00d

Browse files
addaleaxMylesBorins
authored andcommitted
src: check uv_prepare_stop return value
PR-URL: #16268 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
1 parent dfaa057 commit 0ddb00d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node_http2_core-inl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ inline int Nghttp2Session::Free() {
591591
CHECK(session_ != nullptr);
592592
DEBUG_HTTP2("Nghttp2Session %s: freeing session\n", TypeName());
593593
// Stop the loop
594-
uv_prepare_stop(&prep_);
594+
CHECK_EQ(uv_prepare_stop(&prep_), 0);
595595
auto PrepClose = [](uv_handle_t* handle) {
596596
Nghttp2Session* session =
597597
ContainerOf(&Nghttp2Session::prep_,

0 commit comments

Comments
 (0)