mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
JSON API close restbed session before shutting down
This commit is contained in:
parent
7a37c11e47
commit
7f74313552
1 changed files with 2 additions and 1 deletions
|
@ -62,8 +62,9 @@ JsonApiServer::JsonApiServer(
|
|||
mPort(port), mShutdownCallback(shutdownCallback)
|
||||
{
|
||||
registerHandler("/jsonApiServer/shutdown",
|
||||
[this](const std::shared_ptr<rb::Session>)
|
||||
[this](const std::shared_ptr<rb::Session> session)
|
||||
{
|
||||
session->close(rb::OK);
|
||||
shutdown();
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue