From 4c1cb66524eeaa02e1784607b0e4c301c49cc614 Mon Sep 17 00:00:00 2001 From: Paul Pacheco Date: Tue, 11 Dec 2018 20:43:09 -0600 Subject: [PATCH] return false if the send fails. Tx to MrGadget who found the issue --- Mirror/Runtime/NetworkConnection.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Mirror/Runtime/NetworkConnection.cs b/Mirror/Runtime/NetworkConnection.cs index 2d2dc010f..f917d2313 100644 --- a/Mirror/Runtime/NetworkConnection.cs +++ b/Mirror/Runtime/NetworkConnection.cs @@ -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; }