Skip to content

Commit

Permalink
Merge pull request #81 from johmarjac/IncludeHeaderFix
Browse files Browse the repository at this point in the history
Fixed proper byte concatenation when IncludeHeader = true.
  • Loading branch information
Filipe GP authored Feb 20, 2018
2 parents 925a6d3 + f19d08c commit d917192
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 d917192

Please sign in to comment.