@ -1871,7 +1871,12 @@ namespace WebSocketSharp
/// </param>
public static void Times (this int n, Action<int> action)
{
if (n > 0 && action != null)
if (n <= 0)
return;
if (action == null)
for (int i = 0; i < n; i++)
action (i);
}