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