Skip to content

Commit

Permalink
Resolve /v2/players/list generating a stack overflow
Browse files Browse the repository at this point in the history
  • Loading branch information
QuiCM committed Apr 13, 2021
1 parent 099256b commit 32a0e2f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions TShockAPI/Rest/Rest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -94,17 +94,17 @@ public EscapedParameterCollection(IParameterCollection collection)
/// </summary>
/// <returns></returns>
public IEnumerator<EscapedParameter> GetEnumerator()
{
return GetEnumerator();
}

IEnumerator IEnumerable.GetEnumerator()
{
foreach (IParameter param in _collection)
{
yield return new EscapedParameter(param);
}
}

IEnumerator IEnumerable.GetEnumerator()
{
return this.GetEnumerator();
}
}

/// <summary>
Expand Down

0 comments on commit 32a0e2f

Please sign in to comment.