summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeif Åstrand <leif@vaadin.com>2012-01-02 15:13:25 +0200
committerLeif Åstrand <leif@vaadin.com>2012-01-02 15:13:25 +0200
commit23aa194c32ef713f2c775163fa424eafe1f9f6e2 (patch)
tree185841b3b9a8b894dba743643bae471d35050857
parentdd99cac73f34d36d22f5f3fe1af6ef8f48055b34 (diff)
downloadvaadin-framework-23aa194c32ef713f2c775163fa424eafe1f9f6e2.tar.gz
vaadin-framework-23aa194c32ef713f2c775163fa424eafe1f9f6e2.zip
Move invocation of incrementActiveRequests based on review (#8190)
-rw-r--r--src/com/vaadin/terminal/gwt/client/ApplicationConnection.java6
1 files 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.");