Fixed timeout delay after ratelimit
This commit is contained in:
parent
aeee423c5a
commit
3c16795964
1 changed files with 2 additions and 1 deletions
|
@ -111,7 +111,8 @@ public class MCChatListener implements Listener, IListener<MessageReceivedEvent>
|
||||||
Thread.sleep(100);
|
Thread.sleep(100);
|
||||||
break;
|
break;
|
||||||
} catch (RateLimitException e) {
|
} catch (RateLimitException e) {
|
||||||
Thread.sleep(e.getRetryDelay());
|
if (e.getRetryDelay() > 0)
|
||||||
|
Thread.sleep(e.getRetryDelay());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in a new issue