This commit is contained in:
MrBesen 2019-11-08 10:30:12 +01:00
parent 1687267741
commit c51405ea91
Signed by: MrBesen
GPG Key ID: 596B2350DCD67504
1 changed files with 4 additions and 0 deletions

View File

@ -309,6 +309,10 @@ public class TelegramAPI implements Runnable {
processUpdates(request("getUpdates", "offset=" + msg_offset + "&timeout=" + (longpolling ? updateInterval : 1), false));
} catch (IOException e) {
log.log("error getting updates.", e);
try {
Thread.sleep(100);
} catch(InterruptedException ignored) {}
}
}