aboutsummaryrefslogtreecommitdiff
path: root/juick-api/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-11-02 15:03:25 +0300
committerGravatar Vitaly Takmazov2017-11-02 15:03:25 +0300
commit61c6a3fe338a5cbbef55081f8ac26011c053125d (patch)
treebae3c8773db9aa3273718d3b686c3b721e49320a /juick-api/src
parent9ff710d38c569b89b8a3de42c474d2ed34cd4ba9 (diff)
api: avoid ws ping on start
Diffstat (limited to 'juick-api/src')
-rw-r--r--juick-api/src/main/java/com/juick/api/TelegramBotManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java
index f992d726..0516af5f 100644
--- a/juick-api/src/main/java/com/juick/api/TelegramBotManager.java
+++ b/juick-api/src/main/java/com/juick/api/TelegramBotManager.java
@@ -106,7 +106,7 @@ public class TelegramBotManager extends TextWebSocketHandler {
applicationEventPublisher.publishEvent(new DisconnectedEvent(this));
}
- @Scheduled(fixedRate = 30000)
+ @Scheduled(fixedRate = 30000, initialDelay = 30000)
public void ping() throws IOException {
if (session != null && session.isOpen()) {
logger.debug("Sending WebSocket ping");