From 61c6a3fe338a5cbbef55081f8ac26011c053125d Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 2 Nov 2017 15:03:25 +0300 Subject: api: avoid ws ping on start --- juick-api/src/main/java/com/juick/api/TelegramBotManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-api/src/main/java/com/juick/api') 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"); -- cgit v1.2.3