Clean working directory after fetching the config

This commit is contained in:
Grische
2022-03-13 12:26:11 +00:00
committed by harlekin
parent aef9ccc034
commit 52993c3f16

View File

@@ -130,8 +130,6 @@ import okhttp3.HttpUrl;
step = this.log.newCheckPoint(); step = this.log.newCheckPoint();
this.gui.status("Starting"); this.gui.status("Starting");
this.configuration.cleanWorkingDirectory();
Error.Type ret; Error.Type ret;
ret = this.server.getConfiguration(); ret = this.server.getConfiguration();
@@ -161,7 +159,10 @@ import okhttp3.HttpUrl;
} }
}, this.configuration.getShutdownTime()); }, this.configuration.getShutdownTime());
} }
// Check integrity of all files in the working directories
this.configuration.cleanWorkingDirectory();
this.startTime = new Date().getTime(); this.startTime = new Date().getTime();
this.server.start(); // for staying alive this.server.start(); // for staying alive
@@ -507,8 +508,7 @@ import okhttp3.HttpUrl;
OS.getOS().kill(this.renderingJob.getProcessRender().getProcess()); OS.getOS().kill(this.renderingJob.getProcessRender().getProcess());
} }
} }
// this.configuration.workingDirectory.delete();
this.configuration.removeWorkingDirectory(); this.configuration.removeWorkingDirectory();
if (this.server == null) { if (this.server == null) {