Cleanup StartRest()

This commit is contained in:
DesWurstes
2018-08-10 18:04:42 +03:00
parent f66e1c793e
commit 2da54f5a66
3 changed files with 3 additions and 5 deletions

View File

@@ -736,8 +736,7 @@ static bool AppInitServers()
StartRPC();
if (!StartHTTPRPC())
return false;
if (gArgs.GetBoolArg("-rest", DEFAULT_REST_ENABLE) && !StartREST())
return false;
if (gArgs.GetBoolArg("-rest", DEFAULT_REST_ENABLE)) StartREST();
StartHTTPServer();
return true;
}