diff options
author | Leif Ã…strand <leif@vaadin.com> | 2015-06-03 11:30:06 +0300 |
---|---|---|
committer | Johannes Dahlström <johannesd@vaadin.com> | 2015-06-08 17:47:43 +0300 |
commit | af215380ffa86960c3780fe4bc699b879c1cec68 (patch) | |
tree | 693988cd1220d24c64adc2a13c3c60f0e84e49c9 /server | |
parent | 5d33446d05972f3aea18675a346ad50edf289194 (diff) | |
download | vaadin-framework-af215380ffa86960c3780fe4bc699b879c1cec68.tar.gz vaadin-framework-af215380ffa86960c3780fe4bc699b879c1cec68.zip |
Reset heartbeat timestamp when reopening UI (#18101)
Change-Id: I288bae95e364277819727a99854d94fbbc98b162
Diffstat (limited to 'server')
-rw-r--r-- | server/src/com/vaadin/ui/UI.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/UI.java b/server/src/com/vaadin/ui/UI.java index 8dd600ddd0..2c04e587c9 100644 --- a/server/src/com/vaadin/ui/UI.java +++ b/server/src/com/vaadin/ui/UI.java @@ -689,6 +689,9 @@ public abstract class UI extends AbstractSingleComponentContainer implements page.init(request); + // Reset heartbeat timeout to avoid surprise if it's almost expired + setLastHeartbeatTimestamp(System.currentTimeMillis()); + refresh(request); URI newLocation = page.getLocation(); |