From a4b642fca65543a4223f93d19f3218d5399386dd Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Thu, 11 Oct 2018 20:16:35 -0500 Subject: [PATCH] These fields should never be assigned after creation --- Mirror/Runtime/Transport/LLAPITransport.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Mirror/Runtime/Transport/LLAPITransport.cs b/Mirror/Runtime/Transport/LLAPITransport.cs index 505778c6b..91de8f06b 100644 --- a/Mirror/Runtime/Transport/LLAPITransport.cs +++ b/Mirror/Runtime/Transport/LLAPITransport.cs @@ -8,16 +8,16 @@ namespace Mirror { public class LLAPITransport : TransportLayer { - ConnectionConfig connectionConfig; + readonly ConnectionConfig connectionConfig; readonly int channelId = 0; // always use first channel byte error; int clientId = -1; int clientConnectionId = -1; - byte[] clientReceiveBuffer = new byte[4096]; + readonly byte[] clientReceiveBuffer = new byte[4096]; int serverHostId = -1; - byte[] serverReceiveBuffer = new byte[4096]; + readonly byte[] serverReceiveBuffer = new byte[4096]; public LLAPITransport(GlobalConfig globalConfig = null, ConnectionConfig connectionConfig = null) {