Feat: Don't do last render image request, use local image

This commit is contained in:
Laurent Clouet
2020-04-14 17:32:22 +02:00
parent b2227e9f4f
commit 08fe55564c
5 changed files with 37 additions and 64 deletions

View File

@@ -329,9 +329,6 @@ public class Client {
gui.error("Client::run problem with confirmJob (returned " + ret + ")");
sendError(step);
}
else {
gui.AddFrameRendered();
}
}
else {
this.jobsToValidate.add(this.renderingJob);
@@ -446,9 +443,6 @@ public class Client {
this.log.debug("Client::senderLoop confirm failed, ret: " + ret);
sendError(step);
}
else {
gui.AddFrameRendered();
}
}
catch (InterruptedException e) {
}
@@ -795,15 +789,17 @@ public class Client {
}
}
}
this.isValidatingJob = false;
this.previousJob = ajob;
gui.AddFrameRendered();
// we can remove the frame file
File frame = new File(ajob.getOutputImagePath());
frame.delete();
ajob.setOutputImagePath(null);
this.isValidatingJob = false;
this.previousJob = ajob;
return Error.Type.OK;
}