Fix: log instance is null
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user