From 0ddb00d3c224184c0ad6efa8a8bdae0fcebeb13e Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Wed, 18 Oct 2017 00:41:16 +0200 Subject: [PATCH] src: check uv_prepare_stop return value PR-URL: https://github.com/nodejs/node/pull/16268 Reviewed-By: Ben Noordhuis Reviewed-By: James M Snell Reviewed-By: Colin Ihrig --- src/node_http2_core-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/node_http2_core-inl.h b/src/node_http2_core-inl.h index 8158abeabc98da..085631dc38872f 100644 --- a/src/node_http2_core-inl.h +++ b/src/node_http2_core-inl.h @@ -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_,