1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-24 04:04:31 +00:00

Fixed crash that could occur if Agent is launched on top of another instance.

This commit is contained in:
Bryan Roe
2021-08-17 11:31:04 -07:00
parent f3ed0f8572
commit 3f03f4c972

View File

@@ -4568,6 +4568,7 @@ int MeshAgent_AgentMode(MeshAgentHostContainer *agentHost, int paramLen, char **
}
paramLen -= ixr;
if (agentHost->masterDb == NULL) { agentHost->masterDb = ILibSimpleDataStore_CreateCachedOnly(); }
if (ILibSimpleDataStore_IsCacheOnly(agentHost->masterDb) == 0)
{
// Check to see if we need to import a settings file