Skip to content

Commit

Permalink
slight tweak when 0 bytes read on UNIX
Browse files Browse the repository at this point in the history
  • Loading branch information
Earu committed Oct 11, 2024
1 parent 0061a5c commit a7cdde1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Listeners/UnixLogListener.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a7cdde1

Please sign in to comment.