import com.google.gwt.user.client.ui.HasWidgets;
import com.google.gwt.user.client.ui.Widget;
import com.vaadin.client.ApplicationConfiguration.ErrorMessage;
-import com.vaadin.client.ApplicationConnection.ApplicationStoppedEvent;
import com.vaadin.client.ResourceLoader.ResourceLoadEvent;
import com.vaadin.client.ResourceLoader.ResourceLoadListener;
import com.vaadin.client.communication.HasJavaScriptConnectorHelper;
if (isApplicationRunning()) {
handleReceivedJSONMessage(start, jsonText, json);
} else {
- setApplicationRunning(true);
- handleWhenCSSLoaded(jsonText, json);
+ if (!cssLoaded) {
+ // Application is starting up for the first time
+ setApplicationRunning(true);
+ handleWhenCSSLoaded(jsonText, json);
+ } else {
+ getLogger()
+ .warning(
+ "Ignored received message because application has already been stopped");
+ return;
+
+ }
}
}