소스 검색

Actually set connection .. (#13249)

Change-Id: Ic334eaa7c077aa0f80f05016ff29c9d40b137fe5
tags/7.2.0.beta1
Artur Signell 10 년 전
부모
커밋
d596adfa5c
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5
    5
      client/src/com/vaadin/client/communication/Heartbeat.java

+ 5
- 5
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() {


Loading…
취소
저장