1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-06 18:43:46 +00:00

Fixed agent connection retry logic

This commit is contained in:
Bryan Roe
2019-06-14 15:11:40 -07:00
parent 583628214e
commit cefab43b99

View File

@@ -3429,7 +3429,7 @@ void MeshServer_Connect(MeshAgentHostContainer *agent)
if (agent->retryTime >= 240000)
{
// Cap at around 4 minutes
delay = agent->retryTime + (timeout % 120000); // Random value between 4 and 6 minutes
delay = 240000 + (timeout % 120000); // Random value between 4 and 6 minutes
}
else
{