return false if the send fails.

Tx to MrGadget who found the issue
This commit is contained in:
Paul Pacheco 2018-12-11 20:43:09 -06:00
parent df4d8fbb8d
commit 4c1cb66524

View File

@ -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;
}