Skip to content

Commit 77d15d5

Browse files
BrainStoneStanislav Parshin
authored andcommitted
Sleep for sleepTimeout instead of 100 ms (#116)
1 parent 3489bc8 commit 77d15d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/src/main/java/com/pengrad/telegrambot/impl/UpdatesHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private int lastUpdateId(List<Update> updates) {
8080
private void sleep() {
8181
if (sleepTimeout <= 0L) return;
8282
try {
83-
Thread.sleep(100);
83+
Thread.sleep(sleepTimeout);
8484
} catch (InterruptedException ignored) {
8585
}
8686
}

0 commit comments

Comments
 (0)