Ref: simplify getInstance, do not put context on a singleton
This commit is contained in:
@@ -81,7 +81,7 @@ public class Linux extends OS {
|
||||
actual_command.add(0, NICE_BINARY_PATH);
|
||||
}
|
||||
else {
|
||||
Log.getInstance(null).error("No low priority binary, will not launch renderer in normal priority");
|
||||
Log.getInstance().error("No low priority binary, will not launch renderer in normal priority");
|
||||
}
|
||||
|
||||
ProcessBuilder builder = new ProcessBuilder(actual_command);
|
||||
@@ -141,7 +141,7 @@ public class Linux extends OS {
|
||||
hasNiceBinary = true;
|
||||
}
|
||||
catch (IOException e) {
|
||||
Log.getInstance(null).error("Failed to find low priority binary, will not launch renderer in normal priority (" + e + ")");
|
||||
Log.getInstance().error("Failed to find low priority binary, will not launch renderer in normal priority (" + e + ")");
|
||||
}
|
||||
finally {
|
||||
if (process != null) {
|
||||
|
||||
Reference in New Issue
Block a user