From 848e20680fb374532a0c5816b79b38532e6da775 Mon Sep 17 00:00:00 2001 From: Mohammad Nejati Date: Tue, 6 Aug 2024 07:39:56 +0000 Subject: [PATCH] Fix cancellation in teardown_tcp_op --- include/boost/beast/websocket/impl/teardown.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/beast/websocket/impl/teardown.hpp b/include/boost/beast/websocket/impl/teardown.hpp index 28ad7a32..dc06a0fc 100644 --- a/include/boost/beast/websocket/impl/teardown.hpp +++ b/include/boost/beast/websocket/impl/teardown.hpp @@ -58,8 +58,8 @@ public: , role_(role) , nb_(false) { - (*this)({}, 0, false); this->set_allowed_cancellation(net::cancellation_type::all); + (*this)({}, 0, false); } void