From 5a0808639ef0487d59603eca5086d73881f99c71 Mon Sep 17 00:00:00 2001 From: pizzaboxer Date: Sun, 30 Jun 2024 21:29:50 +0400 Subject: [PATCH] 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 --- Bloxstrap/Integrations/ActivityWatcher.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bloxstrap/Integrations/ActivityWatcher.cs b/Bloxstrap/Integrations/ActivityWatcher.cs index 2e5d39d..9447e11 100644 --- a/Bloxstrap/Integrations/ActivityWatcher.cs +++ b/Bloxstrap/Integrations/ActivityWatcher.cs @@ -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); }