diff --git a/CHANGELOG.md b/CHANGELOG.md index 0438e7f5..e3162979 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ Version XXX: +* Eliminate spurious uninitialised variable warning in detect_ssl. * Add handler tracking locations to flat_stream. * Add handler tracking locations to detect_ssl. * Add handler tracking locations to icy_stream. diff --git a/include/boost/beast/websocket/impl/teardown.hpp b/include/boost/beast/websocket/impl/teardown.hpp index 2e2f0ad7..b40790af 100644 --- a/include/boost/beast/websocket/impl/teardown.hpp +++ b/include/boost/beast/websocket/impl/teardown.hpp @@ -56,6 +56,7 @@ public: s.get_executor()) , s_(s) , role_(role) + , nb_(false) { (*this)({}, 0, false); } @@ -85,9 +86,16 @@ public: if(ec == net::error::would_block) { BOOST_ASIO_CORO_YIELD - s_.async_wait( - net::socket_base::wait_read, - beast::detail::bind_continuation(std::move(*this))); + { + BOOST_ASIO_HANDLER_LOCATION(( + __FILE__, __LINE__, + "websocket::ssl::teardown" + )); + + s_.async_wait( + net::socket_base::wait_read, + beast::detail::bind_continuation(std::move(*this))); + } continue; } if(ec)