Skip to content

Commit

Permalink
- Oops, forgot changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KoalaBear84 committed Dec 6, 2020
1 parent 13e5760 commit 2b5147c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions OpenDirectoryDownloader.Shared/RateLimiter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,14 @@ public async Task RateLimit()
}
} while (true);
}

/// <summary>
/// Add extra delay in case of errors etc.
/// </summary>
/// <param name="timeSpan">TimeSpan to add</param>
public void AddDelay(TimeSpan timeSpan)
{
LastRequest.Add(timeSpan);
}
}
}

0 comments on commit 2b5147c

Please sign in to comment.