VConsole.log("Handling message from server");
eventBus.fireEvent(new ResponseHandlingStartedEvent(this));
+ final int syncId;
if (json.containsKey(ApplicationConstants.SERVER_SYNC_ID)) {
- int syncId = json.getInt(ApplicationConstants.SERVER_SYNC_ID);
+ syncId = json.getInt(ApplicationConstants.SERVER_SYNC_ID);
/*
* Use sync id unless explicitly set as undefined, as is done by
lastSeenServerSyncId = syncId;
}
} else {
+ syncId = -1;
VConsole.error("Server response didn't contain a sync id. "
+ "Please verify that the server is up-to-date and that the response data has not been modified in transmission.");
}
Command c = new Command() {
@Override
public void execute() {
+ assert syncId == -1 || syncId == lastSeenServerSyncId;
+
handleUIDLDuration.logDuration(" * Loading widgets completed",
10);