mirror of
https://github.com/GravitLauncher/Launcher
synced 2025-01-09 00:59:44 +03:00
[FIX] Изменен механизм schedule ping запросов
This commit is contained in:
parent
dadaa34926
commit
d0c59790bb
1 changed files with 2 additions and 2 deletions
|
@ -32,9 +32,9 @@ public void handlerAdded(final ChannelHandlerContext ctx) throws Exception {
|
|||
public void channelActive(final ChannelHandlerContext ctx) throws Exception {
|
||||
handshaker.handshake(ctx.channel());
|
||||
clientJSONPoint.onOpen();
|
||||
ctx.executor().schedule(() -> {
|
||||
ctx.executor().scheduleWithFixedDelay(() -> {
|
||||
ctx.channel().writeAndFlush(new PingWebSocketFrame());
|
||||
}, 20L, TimeUnit.SECONDS);
|
||||
}, 20L, 20L, TimeUnit.SECONDS);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in a new issue