mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Fix crash at startup if jsonapi not enabled
This commit is contained in:
parent
bf98166197
commit
1c7f02655e
@ -1249,6 +1249,7 @@ int RsServer::StartupRetroShare()
|
|||||||
mPluginsManager->loadPlugins(programatically_inserted_plugins) ;
|
mPluginsManager->loadPlugins(programatically_inserted_plugins) ;
|
||||||
|
|
||||||
#ifdef RS_JSONAPI
|
#ifdef RS_JSONAPI
|
||||||
|
if(jsonApiServer) // JsonApiServer may be disabled at runtime
|
||||||
{
|
{
|
||||||
mConfigMgr->addConfiguration("jsonApi.cfg", jsonApiServer);
|
mConfigMgr->addConfiguration("jsonApi.cfg", jsonApiServer);
|
||||||
RsFileHash dummyHash;
|
RsFileHash dummyHash;
|
||||||
|
Loading…
Reference in New Issue
Block a user