Skip to content

Commit

Permalink
fix: Fixed message merger expansion past MaxSize
Browse files Browse the repository at this point in the history
  • Loading branch information
TwoTenPvP committed Dec 17, 2019
1 parent c8d263c commit d63f624
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Ruffles/Messaging/MessageMerger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ internal void ExpandToSize(int size)

if (size > _maxSize)
{
throw new ArgumentOutOfRangeException(nameof(size), "Size is larger than max size");
size = _maxSize;
}

if (size < _size)
Expand Down

0 comments on commit d63f624

Please sign in to comment.