src: check uv_prepare_stop return value
PR-URL: https://github.com/nodejs/node/pull/16268 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
parent
f2f391e575
commit
bf1bacef6b
@ -591,7 +591,7 @@ inline int Nghttp2Session::Free() {
|
|||||||
CHECK(session_ != nullptr);
|
CHECK(session_ != nullptr);
|
||||||
DEBUG_HTTP2("Nghttp2Session %s: freeing session\n", TypeName());
|
DEBUG_HTTP2("Nghttp2Session %s: freeing session\n", TypeName());
|
||||||
// Stop the loop
|
// Stop the loop
|
||||||
uv_prepare_stop(&prep_);
|
CHECK_EQ(uv_prepare_stop(&prep_), 0);
|
||||||
auto PrepClose = [](uv_handle_t* handle) {
|
auto PrepClose = [](uv_handle_t* handle) {
|
||||||
Nghttp2Session* session =
|
Nghttp2Session* session =
|
||||||
ContainerOf(&Nghttp2Session::prep_,
|
ContainerOf(&Nghttp2Session::prep_,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user