mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
LLAPITransport: fix hostId out of bounds error
This commit is contained in:
parent
c17254e80d
commit
a210e8ce65
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user