Fix: log instance is null

This commit is contained in:
Sheepit Renderfarm
2025-03-11 15:39:23 +00:00
parent 03f08ef0a7
commit 912c69e8c8

View File

@@ -152,6 +152,9 @@ public class Worker {
config.setDetectGPUs(!no_gpu_detection);
config.setIncompatibleProcess(incompatibleProcess);
// set a temporary log instance, in case there is a log call between here and config/setting merge
Log.setInstance(config);
if (sharedDownloadsDir != null) {
File dir = new File(sharedDownloadsDir);
if (dir.exists() == false && dir.mkdirs() == false) {