mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
return false if the send fails.
Tx to MrGadget who found the issue
This commit is contained in:
parent
df4d8fbb8d
commit
4c1cb66524
@ -286,13 +286,11 @@ public virtual bool TransportSend(int channelId, byte[] bytes, out byte error)
|
||||
error = 0;
|
||||
if (Transport.layer.ClientConnected())
|
||||
{
|
||||
Transport.layer.ClientSend(channelId, bytes);
|
||||
return true;
|
||||
return Transport.layer.ClientSend(channelId, bytes);
|
||||
}
|
||||
else if (Transport.layer.ServerActive())
|
||||
{
|
||||
Transport.layer.ServerSend(connectionId, channelId, bytes);
|
||||
return true;
|
||||
return Transport.layer.ServerSend(connectionId, channelId, bytes);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user