Skip to content

Commit

Permalink
fixed heartbeat inteval timer.
Browse files Browse the repository at this point in the history
Was called only one
  • Loading branch information
Fernando Basello authored and Fernando Basello committed Jan 21, 2016
1 parent 70e24ad commit 0a0e190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/phoenixframework/channels/Socket.java
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ public void run() {
}
};

timer.schedule(Socket.this.heartbeatTimerTask, Socket.this.heartbeatInterval);
timer.schedule(Socket.this.heartbeatTimerTask, Socket.this.heartbeatInterval, Socket.this.heartbeatInterval);
}

private void cancelHeartbeatTimer(){
Expand Down Expand Up @@ -380,4 +380,4 @@ private void flushSendBuffer() {
static String replyEventName(final String ref) {
return "chan_reply_" + ref;
}
}
}

0 comments on commit 0a0e190

Please sign in to comment.