diff --git a/src/main/java/com/exaroton/api/ws/WebSocketManager.java b/src/main/java/com/exaroton/api/ws/WebSocketManager.java index dc2a367..15a7486 100644 --- a/src/main/java/com/exaroton/api/ws/WebSocketManager.java +++ b/src/main/java/com/exaroton/api/ws/WebSocketManager.java @@ -133,12 +133,13 @@ public void handleData(String type, String message) { public void handleClose(int code, String reason, boolean remote) { if (remote && this.shouldAutoReconnect()) { reconnectTimer = new Timer(); + this.sendDebug("Reconnecting in 5s"); reconnectTimer.schedule(new TimerTask() { @Override public void run() { client.reconnect(); } - }, 0, 5000); + }, 5000, 5000); } }