[core] Fix leak
This commit is contained in:
parent
0d08926eae
commit
2065b84d73
|
|
@ -135,8 +135,9 @@ public class LogcatService implements Runnable {
|
|||
t.start();
|
||||
t.join();
|
||||
var propsLogPath = ConfigFileManager.getpropsLogPath();
|
||||
var writer = new BufferedWriter(new FileWriter(propsLogPath));
|
||||
try (var writer = new BufferedWriter(new FileWriter(propsLogPath))) {
|
||||
writer.append(sb);
|
||||
}
|
||||
} catch (IOException | InterruptedException | NullPointerException e) {
|
||||
Log.e(TAG, "GetProp: " + Arrays.toString(e.getStackTrace()));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue