mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-27 00:19:25 -05:00
JSON API close restbed session before shutting down
This commit is contained in:
parent
7a37c11e47
commit
7f74313552
@ -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…
Reference in New Issue
Block a user