Skip to content

Commit

Permalink
fix: Fixed packets being read as too long in certain threading config…
Browse files Browse the repository at this point in the history
…urations
  • Loading branch information
TwoTenPvP committed Jan 15, 2020
1 parent 8d2b032 commit 22e4bee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ruffles/Core/RuffleSocket.cs
Original file line number Diff line number Diff line change
Expand Up @@ -922,7 +922,7 @@ private void StartSocketLogic()
else
{
// Process on thread
HandlePacket(new ArraySegment<byte>(receiveBuffer, 0, receiveSize), _endpoint, true);
HandlePacket(new ArraySegment<byte>(receiveBuffer, 0, size), _endpoint, true);
}
}
catch (SocketException e)
Expand Down

0 comments on commit 22e4bee

Please sign in to comment.