From 1c7f02655ec390b0a04b0c6c137e5643f9f4fff5 Mon Sep 17 00:00:00 2001 From: Gioacchino Mazzurco Date: Fri, 21 Sep 2018 01:40:26 +0200 Subject: [PATCH] Fix crash at startup if jsonapi not enabled --- libretroshare/src/rsserver/rsinit.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/libretroshare/src/rsserver/rsinit.cc b/libretroshare/src/rsserver/rsinit.cc index 2a398bc0d..fe2f4c991 100644 --- a/libretroshare/src/rsserver/rsinit.cc +++ b/libretroshare/src/rsserver/rsinit.cc @@ -1249,6 +1249,7 @@ int RsServer::StartupRetroShare() mPluginsManager->loadPlugins(programatically_inserted_plugins) ; #ifdef RS_JSONAPI + if(jsonApiServer) // JsonApiServer may be disabled at runtime { mConfigMgr->addConfiguration("jsonApi.cfg", jsonApiServer); RsFileHash dummyHash;