]> source.dussan.org Git - vaadin-framework.git/commitdiff
Actually set connection .. (#13249)
authorArtur Signell <artur@vaadin.com>
Tue, 4 Feb 2014 19:20:32 +0000 (21:20 +0200)
committerArtur Signell <artur@vaadin.com>
Tue, 4 Feb 2014 19:21:50 +0000 (21:21 +0200)
Change-Id: Ic334eaa7c077aa0f80f05016ff29c9d40b137fe5

client/src/com/vaadin/client/communication/Heartbeat.java

index 46c8d62c71f740ef9584df71ae749fa123046dab..4b808271279b4573816c0fbc338b6f334cb8d115 100644 (file)
@@ -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() {