diff options
author | Leif Åstrand <leif@vaadin.com> | 2015-06-03 11:30:06 +0300 |
---|---|---|
committer | Vaadin Code Review <review@vaadin.com> | 2015-06-03 10:49:03 +0000 |
commit | 24c6da9ee5c5a7c464a7f3aa849356eb9885cead (patch) | |
tree | 5259857f2f464384ecf3046adb4f7859025d700c /server | |
parent | 5dc4c2e9b5944ac5f5f7e327d180b1d244006b2f (diff) | |
download | vaadin-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.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 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(); |