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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user