Fix: RENDERER_KILLED error sends a frame reset to server (#259)

This commit is contained in:
Luis Uguina
2020-06-18 18:43:18 +10:00
committed by GitHub
parent b91bf3c0c5
commit 838cd7c0ec

View File

@@ -325,6 +325,10 @@ import lombok.Data;
ret = this.work(this.renderingJob); ret = this.work(this.renderingJob);
if (ret == Error.Type.RENDERER_KILLED) { if (ret == Error.Type.RENDERER_KILLED) {
Job frame_to_reset = this.renderingJob; // copy it because the sendError will take ~5min to execute
this.renderingJob = null;
this.gui.error(Error.humanString(ret));
this.sendError(step, frame_to_reset, ret);
this.log.removeCheckPoint(step); this.log.removeCheckPoint(step);
continue; continue;
} }