From cb3d3dba72b8cfdbc72f6ac7fcf8d8114917a1ae Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 4 Jun 2019 10:07:24 +0200 Subject: [PATCH] Fix: TelepathyTransport.GetMaxPacketSize uses the new configurable max size --- Assets/Mirror/Runtime/Transport/TelepathyTransport.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Assets/Mirror/Runtime/Transport/TelepathyTransport.cs b/Assets/Mirror/Runtime/Transport/TelepathyTransport.cs index f5090eed2..d336246d8 100644 --- a/Assets/Mirror/Runtime/Transport/TelepathyTransport.cs +++ b/Assets/Mirror/Runtime/Transport/TelepathyTransport.cs @@ -139,8 +139,7 @@ public override void Shutdown() public override int GetMaxPacketSize(int channelId) { - // Telepathy's limit is Array.Length, which is int - return int.MaxValue; + return serverMaxMessageSize; } public override string ToString()