]> source.dussan.org Git - vaadin-framework.git/commitdiff
Move invocation of incrementActiveRequests based on review (#8190)
authorLeif Åstrand <leif@vaadin.com>
Mon, 2 Jan 2012 13:13:25 +0000 (15:13 +0200)
committerLeif Åstrand <leif@vaadin.com>
Mon, 2 Jan 2012 13:13:25 +0000 (15:13 +0200)
src/com/vaadin/terminal/gwt/client/ApplicationConnection.java

index 109f63964f7ecf0c158e973de00d249ff5b23ad8..0b50c115973ff694822bfa2068b71240bd8d5a48 100644 (file)
@@ -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.");