mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-21 20:25:52 +00:00
capture websocket session as shared_ptr (#99)
* capture websocket session as shared_ptr
This commit is contained in:
@@ -315,8 +315,9 @@ public:
|
|||||||
{
|
{
|
||||||
boost::asio::spawn(
|
boost::asio::spawn(
|
||||||
ioc_,
|
ioc_,
|
||||||
[m = std::move(msg), this](boost::asio::yield_context yc) {
|
[m = std::move(msg), shared_this = shared_from_this()](
|
||||||
handle_request(std::move(m), yc);
|
boost::asio::yield_context yield) {
|
||||||
|
shared_this->handle_request(std::move(m), yield);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user