forked from boostorg/mqtt5
[mqtt-client] fix stack-use-after-return
Reviewers: ivica Reviewed By: ivica Subscribers: korina Differential Revision: https://repo.mireo.local/D26354
This commit is contained in:
@@ -28,7 +28,7 @@ void assign_tls_sni(const authority_path& ap, TlsContext& ctx, TlsStream& s);
|
|||||||
namespace detail {
|
namespace detail {
|
||||||
|
|
||||||
template <typename Handler>
|
template <typename Handler>
|
||||||
decltype(auto) tracking_executor(const Handler& handler) {
|
auto tracking_executor(const Handler& handler) {
|
||||||
return asio::prefer(
|
return asio::prefer(
|
||||||
asio::get_associated_executor(handler),
|
asio::get_associated_executor(handler),
|
||||||
asio::execution::outstanding_work.tracked
|
asio::execution::outstanding_work.tracked
|
||||||
|
Reference in New Issue
Block a user