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:
Anna Henningsen 2017-10-18 00:41:16 +02:00
parent f2f391e575
commit bf1bacef6b
No known key found for this signature in database
GPG Key ID: 9C63F3A6CD2AD8F9

View File

@ -591,7 +591,7 @@ inline int Nghttp2Session::Free() {
CHECK(session_ != nullptr);
DEBUG_HTTP2("Nghttp2Session %s: freeing session\n", TypeName());
// Stop the loop
uv_prepare_stop(&prep_);
CHECK_EQ(uv_prepare_stop(&prep_), 0);
auto PrepClose = [](uv_handle_t* handle) {
Nghttp2Session* session =
ContainerOf(&Nghttp2Session::prep_,