mirror of
https://github.com/XRPLF/clio.git
synced 2025-11-20 11:45:53 +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(
|
||||
ioc_,
|
||||
[m = std::move(msg), this](boost::asio::yield_context yc) {
|
||||
handle_request(std::move(m), yc);
|
||||
[m = std::move(msg), shared_this = shared_from_this()](
|
||||
boost::asio::yield_context yield) {
|
||||
shared_this->handle_request(std::move(m), yield);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user