From 19bb320b7f0ce0ba9401ef4f3225038fb0c8dbe0 Mon Sep 17 00:00:00 2001 From: Ruben Perez Date: Sun, 16 Oct 2022 18:45:56 +0200 Subject: [PATCH] quit_connection async bug --- .../mysql/detail/network_algorithms/impl/quit_connection.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/mysql/detail/network_algorithms/impl/quit_connection.hpp b/include/boost/mysql/detail/network_algorithms/impl/quit_connection.hpp index b6c72dd8..b548cb19 100644 --- a/include/boost/mysql/detail/network_algorithms/impl/quit_connection.hpp +++ b/include/boost/mysql/detail/network_algorithms/impl/quit_connection.hpp @@ -52,8 +52,9 @@ struct quit_connection_op : boost::asio::coroutine if (chan_.stream().ssl_active()) { BOOST_ASIO_CORO_YIELD chan_.stream().async_shutdown(std::move(self)); - self.complete(error_code()); } + + self.complete(error_code()); } } };