From: Artur Signell Date: Tue, 4 Feb 2014 19:20:32 +0000 (+0200) Subject: Actually set connection .. (#13249) X-Git-Tag: 7.2.0.beta1~192 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d596adfa5c575cad8d57dd64b916ecbfc9d48d7b;p=vaadin-framework.git Actually set connection .. (#13249) Change-Id: Ic334eaa7c077aa0f80f05016ff29c9d40b137fe5 --- 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() {