diff --git a/libretroshare/src/jsonapi/jsonapi.cpp b/libretroshare/src/jsonapi/jsonapi.cpp index 437db3f85..510a1363b 100644 --- a/libretroshare/src/jsonapi/jsonapi.cpp +++ b/libretroshare/src/jsonapi/jsonapi.cpp @@ -62,8 +62,9 @@ JsonApiServer::JsonApiServer( mPort(port), mShutdownCallback(shutdownCallback) { registerHandler("/jsonApiServer/shutdown", - [this](const std::shared_ptr) + [this](const std::shared_ptr session) { + session->close(rb::OK); shutdown(); });