}
protected void startRequest() {
+ if (hasActiveRequest) {
+ throw new IllegalStateException(
+ "Trying to start a new request while another is active");
+ }
hasActiveRequest = true;
requestStartTime = new Date();
// show initial throbber
}
protected void endRequest() {
+ if (!hasActiveRequest) {
+ throw new IllegalStateException("No active request");
+ }
+ hasActiveRequest = false;
if (applicationRunning) {
checkForPendingVariableBursts();
runPostRequestHooks(configuration.getRootPanelId());
}
- hasActiveRequest = false;
// deferring to avoid flickering
Scheduler.get().scheduleDeferred(new Command() {
public void execute() {