mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 14:12:43 -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)
|
mPort(port), mShutdownCallback(shutdownCallback)
|
||||||
{
|
{
|
||||||
registerHandler("/jsonApiServer/shutdown",
|
registerHandler("/jsonApiServer/shutdown",
|
||||||
[this](const std::shared_ptr<rb::Session>)
|
[this](const std::shared_ptr<rb::Session> session)
|
||||||
{
|
{
|
||||||
|
session->close(rb::OK);
|
||||||
shutdown();
|
shutdown();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue