diff options
Diffstat (limited to 'boost/beast/websocket/impl/teardown.hpp')
-rw-r--r-- | boost/beast/websocket/impl/teardown.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/boost/beast/websocket/impl/teardown.hpp b/boost/beast/websocket/impl/teardown.hpp index 3dfc3d2f33..43e63c2db2 100644 --- a/boost/beast/websocket/impl/teardown.hpp +++ b/boost/beast/websocket/impl/teardown.hpp @@ -59,6 +59,7 @@ public: , nb_(false) { (*this)({}, 0, false); + this->set_allowed_cancellation(net::cancellation_type::all); } void @@ -127,7 +128,7 @@ public: "websocket::tcp::async_teardown" )); - net::post(bind_front_handler( + net::post(s_.get_executor(), bind_front_handler( std::move(*this), ec)); } } |