Browse Source

Fixed requests timing out immediately

pull/138/merge
RogueException 9 years ago
parent
commit
c958a6ffdf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/Discord.Net/Net/Queue/RequestQueueBucket.cs

+ 1
- 1
src/Discord.Net/Net/Queue/RequestQueueBucket.cs View File

@@ -148,7 +148,7 @@ namespace Discord.Net.Queue
{
if (endTick.HasValue)
{
int millis = unchecked(Environment.TickCount - endTick.Value);
int millis = unchecked(endTick.Value - Environment.TickCount);
if (millis <= 0 || !await _semaphore.WaitAsync(millis).ConfigureAwait(false))
throw new TimeoutException();
}


Loading…
Cancel
Save