mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-07-12 02:34:59 +03:00
Cedar: various fixes
This commit is contained in:
@ -103,7 +103,7 @@ void SessionMain(SESSION *s)
|
||||
s->LastCommTime = Tick64();
|
||||
if (s->ServerMode == false)
|
||||
{
|
||||
s->NextConnectionTime = Tick64() + s->ClientOption->AdditionalConnectionInterval * (UINT64)1000;
|
||||
s->NextConnectionTime = Tick64() + (UINT64)((UINT64)s->ClientOption->AdditionalConnectionInterval * (UINT64)1000);
|
||||
}
|
||||
|
||||
s->NumConnectionsEstablished++;
|
||||
@ -900,7 +900,7 @@ void ClientAdditionalConnectChance(SESSION *s)
|
||||
(s->NextConnectionTime <= now))
|
||||
{
|
||||
// Start the work to put an additional connection
|
||||
s->NextConnectionTime = now + s->ClientOption->AdditionalConnectionInterval * (UINT64)1000U;
|
||||
s->NextConnectionTime = now + ((UINT64)s->ClientOption->AdditionalConnectionInterval * (UINT64)1000);
|
||||
SessionAdditionalConnect(s);
|
||||
}
|
||||
else
|
||||
|
Reference in New Issue
Block a user