Fix crash at startup if jsonapi not enabled

This commit is contained in:
Gioacchino Mazzurco 2018-09-21 01:40:26 +02:00
parent bf98166197
commit 1c7f02655e
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -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;