Skip to content

Commit

Permalink
Sleep for sleepTimeout instead of 100 ms (#116)
Browse files Browse the repository at this point in the history
  • Loading branch information
BrainStone authored and pengrad committed Nov 17, 2017
1 parent 3489bc8 commit 77d15d5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ private int lastUpdateId(List<Update> updates) {
private void sleep() {
if (sleepTimeout <= 0L) return;
try {
Thread.sleep(100);
Thread.sleep(sleepTimeout);
} catch (InterruptedException ignored) {
}
}
Expand Down

0 comments on commit 77d15d5

Please sign in to comment.