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

Commit b40d197

Browse files
committed
Deploy hotfix for NetcodeIO.NET with regards to connection expiry times
1 parent c1248f6 commit b40d197

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ThirdParty/Netcode.IO.NET/Core/EncryptionManager.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,9 @@ public int FindEncryptionMapping(EndPoint address, double time)
186186
(encryptionMappings[i].ExpireTime < 0.0 || encryptionMappings[i].ExpireTime >= time))
187187
{
188188
encryptionMappings[i].LastAccessTime = time;
189-
return i;
189+
// Hotfix, sometimes expiry time wasn't being updated and this caused clients to disconnect..
190+
encryptionMappings[i].ExpireTime = time + Defines.NETCODE_TIMEOUT_SECONDS;
191+
return i;
190192
}
191193
}
192194

0 commit comments

Comments
 (0)