Skip to content

Commit

Permalink
Fix log lines appearing twice from Windows clients
Browse files Browse the repository at this point in the history
  • Loading branch information
jcoffland committed May 13, 2024
1 parent 18beee7 commit 6209770
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/fah/client/LogTracker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void LogTracker::remove(const cb::SmartPointer<Listener> &listener) {

void LogTracker::writeln(const char *s) {
lines.push_back(entry_t(count++, s));
if (it == lines.end()) it--;
if (it == lines.end()) it = prev(lines.end());
while (1e5 < lines.size()) lines.pop_front();
if (!event->isPending()) event->add(0.25);
}
Expand All @@ -81,7 +81,6 @@ void LogTracker::update() {
newLines->append(it->second);
last = it->first;
}
it = lines.end();
}

if (newLines->size())
Expand Down

0 comments on commit 6209770

Please sign in to comment.