This commit is contained in:
Paul Pacheco 2020-03-03 10:40:57 -06:00
parent 4bc1c3eb20
commit e00e8195bb

View File

@ -216,9 +216,7 @@ public bool Send<T>(T msg, int channelId = Channels.DefaultReliable) where T : I
// pack message and send allocation free
MessagePacker.Pack(msg, writer);
NetworkDiagnostics.OnSend(msg, channelId, writer.Position, 1);
bool result = Send(writer.ToArraySegment(), channelId);
return result;
return Send(writer.ToArraySegment(), channelId);
}
}