Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Commit

Permalink
Deploy hotfix for NetcodeIO.NET with regards to connection expiry times
Browse files Browse the repository at this point in the history
  • Loading branch information
hach-que committed Mar 20, 2018
1 parent c1248f6 commit b40d197
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ThirdParty/Netcode.IO.NET/Core/EncryptionManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,9 @@ public int FindEncryptionMapping(EndPoint address, double time)
(encryptionMappings[i].ExpireTime < 0.0 || encryptionMappings[i].ExpireTime >= time))
{
encryptionMappings[i].LastAccessTime = time;
return i;
// Hotfix, sometimes expiry time wasn't being updated and this caused clients to disconnect..
encryptionMappings[i].ExpireTime = time + Defines.NETCODE_TIMEOUT_SECONDS;
return i;
}
}

Expand Down

0 comments on commit b40d197

Please sign in to comment.