Skip to content

Commit bf1bace

Browse files
committed
src: check uv_prepare_stop return value
PR-URL: nodejs#16268 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent f2f391e commit bf1bace

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)