Skip to content

Commit

Permalink
Fixed proper byte concatenation when IncludeHeader = true.
Browse files Browse the repository at this point in the history
  • Loading branch information
johmarjac committed Feb 20, 2018
1 parent 925a6d3 commit f19d08c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Ether.Network/Utils/SocketAsyncUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ internal static void ReceiveData(SocketAsyncEventArgs e, IAsyncUserToken token,
if (token.ReceivedMessageBytesCount == token.MessageSize.Value)
{
byte[] messageData = packetProcessor.IncludeHeader
? token.HeaderData.Concat(token.HeaderData).ToArray()
? token.HeaderData.Concat(token.MessageData).ToArray()
: token.MessageData;

token.Reset();
Expand Down

0 comments on commit f19d08c

Please sign in to comment.