Added missing endRequests so the progress indicator will disappear also if there is an error.
svn changeset:12422/svn branch:6.3
- requestStartTime.getTime()) + "ms");
int statusCode = response.getStatusCode();
+ if ((statusCode / 100) == 4) {
+ // Handle all 4xx errors the same way as (they are
+ // all permanent errors)
+ showCommunicationError("UIDL could not be read from server. Check servlets mappings. Error code: "
+ + statusCode);
+ endRequest();
+ return;
+ }
switch (statusCode) {
case 0:
showCommunicationError("Invalid status code 0 (server down?)");
- return;
- case 404:
- showCommunicationError("UIDL could not be read from server. Check servlets mappings.");
+ endRequest();
return;
case 503:
// We'll assume msec instead of the usual seconds
forceSync, analyzeLayouts);
}
}).schedule(delay);
+ endRequest();
return;
}