aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Logging/SimpleLogManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations/Logging/SimpleLogManager.cs')
-rw-r--r--Emby.Server.Implementations/Logging/SimpleLogManager.cs7
1 files changed, 0 insertions, 7 deletions
diff --git a/Emby.Server.Implementations/Logging/SimpleLogManager.cs b/Emby.Server.Implementations/Logging/SimpleLogManager.cs
index a3de8e650..3a6992657 100644
--- a/Emby.Server.Implementations/Logging/SimpleLogManager.cs
+++ b/Emby.Server.Implementations/Logging/SimpleLogManager.cs
@@ -134,18 +134,11 @@ namespace Emby.Server.Implementations.Logging
{
try
{
- var any = false;
-
foreach (var message in _queue.GetConsumingEnumerable())
{
var bytes = Encoding.UTF8.GetBytes(message + Environment.NewLine);
_fileStream.Write(bytes, 0, bytes.Length);
- any = true;
- }
-
- if (any)
- {
_fileStream.Flush(true);
}
}