From 52993c3f160bde58ce7fa87c4b86804b2594ae38 Mon Sep 17 00:00:00 2001 From: Grische <10663446-grische@users.noreply.gitlab.com> Date: Sun, 13 Mar 2022 12:26:11 +0000 Subject: [PATCH] Clean working directory after fetching the config --- src/com/sheepit/client/Client.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/com/sheepit/client/Client.java b/src/com/sheepit/client/Client.java index 00d409a..75cbe48 100644 --- a/src/com/sheepit/client/Client.java +++ b/src/com/sheepit/client/Client.java @@ -130,8 +130,6 @@ import okhttp3.HttpUrl; step = this.log.newCheckPoint(); this.gui.status("Starting"); - this.configuration.cleanWorkingDirectory(); - Error.Type ret; ret = this.server.getConfiguration(); @@ -161,7 +159,10 @@ import okhttp3.HttpUrl; } }, this.configuration.getShutdownTime()); } - + + // Check integrity of all files in the working directories + this.configuration.cleanWorkingDirectory(); + this.startTime = new Date().getTime(); this.server.start(); // for staying alive @@ -507,8 +508,7 @@ import okhttp3.HttpUrl; OS.getOS().kill(this.renderingJob.getProcessRender().getProcess()); } } - - // this.configuration.workingDirectory.delete(); + this.configuration.removeWorkingDirectory(); if (this.server == null) {