Fix: do no desync data on error send

This commit is contained in:
Laurent Clouet
2023-09-09 13:17:15 +02:00
parent 4deda4faf9
commit c18bd5b1bb

View File

@@ -463,6 +463,7 @@ import okhttp3.HttpUrl;
gui.error("Client::run problem with confirmJob (returned " + ret + ")"); gui.error("Client::run problem with confirmJob (returned " + ret + ")");
sendError(step, this.renderingJob, Error.Type.VALIDATION_FAILED); sendError(step, this.renderingJob, Error.Type.VALIDATION_FAILED);
} }
this.renderingJob = null;
} }
else { else {
this.gui.status(String.format("Queuing frame for upload (%.2fMB)", (this.renderingJob.getOutputImageSize() / 1024.0 / 1024.0))); this.gui.status(String.format("Queuing frame for upload (%.2fMB)", (this.renderingJob.getOutputImageSize() / 1024.0 / 1024.0)));
@@ -704,18 +705,6 @@ import okhttp3.HttpUrl;
this.log.debug("Client::sendError Exception " + e + " stacktrace: " + sw.toString()); this.log.debug("Client::sendError Exception " + e + " stacktrace: " + sw.toString());
// no exception should be raised to actual launcher (applet or standalone) // no exception should be raised to actual launcher (applet or standalone)
} }
if (error != null && (error == Error.Type.RENDERER_CRASHED || error == Error.Type.RENDERER_KILLED_BY_USER || error == Type.OK
|| error == Type.RENDERER_KILLED_BY_USER_OVER_TIME || error == Error.Type.RENDERER_KILLED_BY_SERVER || error == Type.MISSING_SCENE)) {
// do nothing, we can ask for a job right away
}
else {
try {
Thread.sleep(300000); // sleeping for 5min
}
catch (InterruptedException e) {
}
}
} }
/** /**