mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04: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)
|
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…
Reference in New Issue
Block a user