From 14447df15425581fd9a77469c4b4f1d324ad8ecd Mon Sep 17 00:00:00 2001 From: Laurent Clouet Date: Sat, 29 Aug 2020 16:17:34 +0200 Subject: [PATCH] Ref: rename variable --- src/com/sheepit/client/Client.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/sheepit/client/Client.java b/src/com/sheepit/client/Client.java index ef9bc77..9f24aac 100644 --- a/src/com/sheepit/client/Client.java +++ b/src/com/sheepit/client/Client.java @@ -390,15 +390,15 @@ import lombok.Data; } if (ret != Error.Type.OK) { - Job frame_to_reset = this.renderingJob; // copy it because the sendError will take ~5min to execute + Job currentJob = 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.sendError(step, currentJob, ret); this.log.removeCheckPoint(step); // Initial test frames always have the Job ID below 20. If we have any error while trying to render the initial frame just // halt the execution - if (Integer.parseInt(frame_to_reset.getId()) < 20) { + if (Integer.parseInt(currentJob.getId()) < 20) { // Add the proper explanation to the existing error message and keep the client waiting forever to ensure the user sees the error this.gui.error(Error.humanString(ret) + " The error happened during the test frame render. Restart the client and try again."); while (true && !shuttingdown) {