diff options
Diffstat (limited to 'src/main/java/kr/syeyoung/dungeonsguide/stomp/StompClient.java')
-rw-r--r-- | src/main/java/kr/syeyoung/dungeonsguide/stomp/StompClient.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompClient.java b/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompClient.java index 16943607..7226c1d6 100644 --- a/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompClient.java +++ b/src/main/java/kr/syeyoung/dungeonsguide/stomp/StompClient.java @@ -87,11 +87,11 @@ public class StompClient extends WebSocketClient implements StompInterface { String heartbeat = payload.headers().get("heart-beat"); if (heartbeat != null) { - int sx = Integer.parseInt(heartbeat.split(",")[0]); - int sy = Integer.parseInt(heartbeat.split(",")[1]); - - if (sy == 0) return; - int heartbeatMS = Integer.max(30000, sy); +// int sx = Integer.parseInt(heartbeat.split(",")[0]); +// int sy = Integer.parseInt(heartbeat.split(",")[1]); +// +// if (sy == 0) return; + int heartbeatMS = 30000; this.heartbeat = ex.scheduleAtFixedRate(() -> { send("\n"); }, heartbeatMS-1000, heartbeatMS-1000, TimeUnit.MILLISECONDS); |