summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorHenri Sara <hesara@vaadin.com>2016-03-01 14:00:23 +0200
committerVaadin Code Review <review@vaadin.com>2016-03-01 14:02:57 +0000
commit05003bafeb84f8251db6168746893e27bb3b0138 (patch)
tree91e8f9ce890c05cf4c038381e9312972854e4f3a /client
parent81aadbb9edeb4a57dd02c35937905e5427a674e0 (diff)
downloadvaadin-framework-05003bafeb84f8251db6168746893e27bb3b0138.tar.gz
vaadin-framework-05003bafeb84f8251db6168746893e27bb3b0138.zip
Omit timings in production mode (#19644)
* UIDL responses only include server side timing information when not in production mode. * Update documentation accordingly. Change-Id: I961d1fdc96b3d04f22254fcd13a5412f17118b42
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ApplicationConnection.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ApplicationConnection.java b/client/src/com/vaadin/client/ApplicationConnection.java
index ce55c13ce5..6830f21bcd 100644
--- a/client/src/com/vaadin/client/ApplicationConnection.java
+++ b/client/src/com/vaadin/client/ApplicationConnection.java
@@ -491,7 +491,11 @@ public class ApplicationConnection implements HasHandlers {
smh.@com.vaadin.client.communication.MessageHandler::lastProcessingTime,
smh.@com.vaadin.client.communication.MessageHandler::totalProcessingTime
];
- pd = pd.concat(smh.@com.vaadin.client.communication.MessageHandler::serverTimingInfo);
+ if (null != smh.@com.vaadin.client.communication.MessageHandler::serverTimingInfo) {
+ pd = pd.concat(smh.@com.vaadin.client.communication.MessageHandler::serverTimingInfo);
+ } else {
+ pd = pd.concat(-1, -1);
+ }
pd[pd.length] = smh.@com.vaadin.client.communication.MessageHandler::bootstrapTime;
return pd;
});