Skip to content

Commit

Permalink
Fix activity watcher timeout bug (#2049)
Browse files Browse the repository at this point in the history
any blank lines in roblox's log file would cause the activity watcher to timeout for 1 second which was severely affecting performance
  • Loading branch information
pizzaboxer committed Jun 30, 2024
1 parent 8464da0 commit 5a08086
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Bloxstrap/Integrations/ActivityWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,8 @@ public async void StartWatcher()
{
string? log = await sr.ReadLineAsync();

if (string.IsNullOrEmpty(log))
logUpdatedEvent.WaitOne(1000);
if (log is null)
logUpdatedEvent.WaitOne(250);
else
ExamineLogEntry(log);
}
Expand Down

0 comments on commit 5a08086

Please sign in to comment.