summaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2015-06-03 11:30:06 +0300
committerVaadin Code Review <review@vaadin.com>2015-06-03 10:49:03 +0000
commit24c6da9ee5c5a7c464a7f3aa849356eb9885cead (patch)
tree5259857f2f464384ecf3046adb4f7859025d700c /server
parent5dc4c2e9b5944ac5f5f7e327d180b1d244006b2f (diff)
downloadvaadin-framework-24c6da9ee5c5a7c464a7f3aa849356eb9885cead.tar.gz
vaadin-framework-24c6da9ee5c5a7c464a7f3aa849356eb9885cead.zip
Reset heartbeat timestamp when reopening UI (#18101)
Change-Id: I288bae95e364277819727a99854d94fbbc98b162
Diffstat (limited to 'server')
-rw-r--r--server/src/com/vaadin/ui/UI.java3
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 b16d7e32d3..2129db614b 100644
--- a/server/src/com/vaadin/ui/UI.java
+++ b/server/src/com/vaadin/ui/UI.java
@@ -718,6 +718,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();