Fix: do no desync data on error send
This commit is contained in:
@@ -463,6 +463,7 @@ import okhttp3.HttpUrl;
|
||||
gui.error("Client::run problem with confirmJob (returned " + ret + ")");
|
||||
sendError(step, this.renderingJob, Error.Type.VALIDATION_FAILED);
|
||||
}
|
||||
this.renderingJob = null;
|
||||
}
|
||||
else {
|
||||
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());
|
||||
// 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) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user