LLAPITransport: fix hostId out of bounds error

This commit is contained in:
vis2k 2019-02-02 11:02:45 +01:00
parent c17254e80d
commit a210e8ce65

View File

@ -116,6 +116,8 @@ public override bool ClientSend(int channelId, byte[] data)
public bool ProcessClientMessage() public bool ProcessClientMessage()
{ {
if (clientId == -1) return false;
int connectionId; int connectionId;
int channel; int channel;
int receivedSize; int receivedSize;
@ -200,6 +202,8 @@ public override bool ServerSend(int connectionId, int channelId, byte[] data)
public bool ProcessServerMessage() public bool ProcessServerMessage()
{ {
if (serverHostId == -1) return false;
int connectionId = -1; int connectionId = -1;
int channel; int channel;
int receivedSize; int receivedSize;