fixed bug causing JSon api server to start twice, and therefore stopping RS because the port was already listen to

This commit is contained in:
csoler 2019-09-15 16:21:12 +02:00
parent c2cb63b40c
commit 636d477aea
No known key found for this signature in database
GPG key ID: 7BCA522266C0804C
3 changed files with 10 additions and 6 deletions

View file

@ -116,15 +116,15 @@ RsAccounts* rsAccounts = nullptr;
RsConfigOptions::RsConfigOptions()
:
#ifdef RS_JSONAPI
jsonApiPort(JsonApiServer::DEFAULT_PORT),
jsonApiBindAddress("127.0.0.1"),
#endif
autoLogin(false),
forcedPort(0),
udpListenerOnly(false),
forcedPort(0),
outStderr(false),
debugLevel(5)
debugLevel(5),
#ifdef RS_JSONAPI
jsonApiPort(0), // JSonAPI server is enabled in each main()
jsonApiBindAddress("127.0.0.1")
#endif
{
}