Fix activity watcher timeout bug (#2049)

any blank lines in roblox's log file would cause the activity watcher to timeout for 1 second which was severely affecting performance
This commit is contained in:
pizzaboxer 2024-06-30 21:29:50 +04:00
parent 8464da0c2b
commit 5a0808639e
No known key found for this signature in database
GPG Key ID: 59D4A1DBAD0F2BA8

View File

@ -112,8 +112,8 @@
{
string? log = await sr.ReadLineAsync();
if (string.IsNullOrEmpty(log))
logUpdatedEvent.WaitOne(1000);
if (log is null)
logUpdatedEvent.WaitOne(250);
else
ExamineLogEntry(log);
}