ipc: Handle rpc actions doing async ops (#1708)
This commit is contained in:
parent
60b606ac43
commit
690403a626
1 changed files with 2 additions and 2 deletions
|
@ -237,8 +237,8 @@ public:
|
|||
auto body (std::string (reinterpret_cast<char *> (buffer.data ()), buffer.size ()));
|
||||
|
||||
// Note that if the rpc action is async, the shared_ptr<rpc_handler> lifetime will be extended by the action handler
|
||||
nano::rpc_handler handler (node, server.rpc, body, request_id_l, response_handler_l);
|
||||
handler.process_request ();
|
||||
auto handler (std::make_shared<nano::rpc_handler> (node, server.rpc, body, request_id_l, response_handler_l));
|
||||
handler->process_request ();
|
||||
}
|
||||
|
||||
/** Async request reader */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue