These fields should never be assigned after creation

This commit is contained in:
Paul Pacheco 2018-10-11 20:16:35 -05:00
parent 875115db2c
commit a4b642fca6

View File

@ -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)
{