From d596adfa5c575cad8d57dd64b916ecbfc9d48d7b Mon Sep 17 00:00:00 2001 From: Artur Signell Date: Tue, 4 Feb 2014 21:20:32 +0200 Subject: [PATCH] Actually set connection .. (#13249) Change-Id: Ic334eaa7c077aa0f80f05016ff29c9d40b137fe5 --- .../src/com/vaadin/client/communication/Heartbeat.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/client/src/com/vaadin/client/communication/Heartbeat.java b/client/src/com/vaadin/client/communication/Heartbeat.java index 46c8d62c71..4b80827127 100644 --- a/client/src/com/vaadin/client/communication/Heartbeat.java +++ b/client/src/com/vaadin/client/communication/Heartbeat.java @@ -53,16 +53,16 @@ public class Heartbeat { /** * Initializes the heartbeat for the given application connection * - * @param applicationConnection + * @param connection * the connection */ - public void init(ApplicationConnection applicationConnection) { - interval = applicationConnection.getConfiguration() - .getHeartbeatInterval(); + public void init(ApplicationConnection connection) { + this.connection = connection; + interval = connection.getConfiguration().getHeartbeatInterval(); setInterval(interval); schedule(); - applicationConnection.addHandler( + connection.addHandler( ApplicationConnection.ApplicationStoppedEvent.TYPE, new ApplicationConnection.ApplicationStoppedHandler() { -- 2.39.5