Eliminate spurious uninitialised variable warning in detect_ssl

This commit is contained in:
Richard Hodges
2020-08-27 09:38:58 +02:00
parent 932db900c3
commit 2f6bf76cb4
2 changed files with 12 additions and 3 deletions

View File

@ -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.

View File

@ -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)