From a7cdde11a972efb3bc69a9017827e860e70aa767 Mon Sep 17 00:00:00 2001 From: Ryan <20880060+Earu@users.noreply.github.com> Date: Fri, 11 Oct 2024 18:30:44 +0200 Subject: [PATCH] slight tweak when 0 bytes read on UNIX --- Listeners/UnixLogListener.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Listeners/UnixLogListener.cs b/Listeners/UnixLogListener.cs index ea4e66c..d467331 100644 --- a/Listeners/UnixLogListener.cs +++ b/Listeners/UnixLogListener.cs @@ -77,7 +77,7 @@ private async Task ProcessMessages() try { bytesRead = await fs.ReadAsync(buffer); - if (bytesRead == 0) + if (bytesRead <= 0) { await Task.Delay(50); continue;