From 23aa194c32ef713f2c775163fa424eafe1f9f6e2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Leif=20=C3=85strand?= Date: Mon, 2 Jan 2012 15:13:25 +0200 Subject: [PATCH] Move invocation of incrementActiveRequests based on review (#8190) --- .../vaadin/terminal/gwt/client/ApplicationConnection.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java index 109f63964f..0b50c11597 100644 --- a/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java +++ b/src/com/vaadin/terminal/gwt/client/ApplicationConnection.java @@ -199,6 +199,9 @@ public class ApplicationConnection { // inital UIDL not in DOM, request later repaintAll(); } else { + // Update counter so TestBench knows something is still going on + incrementActiveRequests(); + // initial UIDL provided in DOM, continue as if returned by request handleJSONText(jsonText); } @@ -622,9 +625,6 @@ public class ApplicationConnection { cssWaits++; } else { cssLoaded = true; - - // Update counter so TestBench knows something is going on - incrementActiveRequests(); handleReceivedJSONMessage(new Date(), jsonText, json); if (cssWaits >= MAX_CSS_WAITS) { VConsole.error("CSS files may have not loaded properly."); -- 2.39.5