Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
fix bug (you were not saving new chunks anymore after closing the fil…
Browse files Browse the repository at this point in the history
…e once) (#361)
  • Loading branch information
IronException authored and 5HT2 committed Jan 12, 2020
1 parent 20c3fe8 commit ab23c2a
Showing 1 changed file with 10 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,16 @@ private PrintWriter testAndGetLogWriter() {
return logWriter;
}


private void logWriterClose() {
if (logWriter != null) {
logWriter.close();
logWriter = null;
this.lastSetting = new LastSetting(); // what if the settings stay the same?
}

}

private void logWriterOpen() {
String filepath = getPath().toString();
try {
Expand Down Expand Up @@ -298,13 +308,6 @@ private boolean isInteger(String s) {
return true;
}

private void logWriterClose() {
if (logWriter != null) {
logWriter.close();
logWriter = null;
}
}

private void saveNewChunk(PrintWriter log, String data) {
log.println(data);
}
Expand Down

0 comments on commit ab23c2a

Please sign in to comment.