Skip to content

Commit

Permalink
Merge 5bbe4de into 7dd47a4
Browse files Browse the repository at this point in the history
  • Loading branch information
niekcandaele committed Jul 1, 2020
2 parents 7dd47a4 + 5bbe4de commit 4be7d87
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions api/hooks/sdtdLogs/LoggingObject.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,11 @@ class LoggingObject extends EventEmitter {
// havn't found any responses in a while, so reset to 0 and try again from scratch
await this.setLastLogLine(0);
}
} else {
}

if (result.lastLogLine) {
// save the log line we found
await this.setLastLogLine(result.lastLogLine + 1);
await this.setLastLogLine(result.lastLogLine);
}

for (const newLog of result.logs) {
Expand Down

0 comments on commit 4be7d87

Please sign in to comment.