Update Logger.cs

This commit is contained in:
Mira 2022-10-12 14:44:32 +02:00
parent 7cdc1b35ea
commit cc976c86a1
Signed by untrusted user who does not match committer: Xorog
GPG key ID: 983798ED9C3E7C36

View file

@ -181,13 +181,11 @@ public class Logger : ILogger
Thread.Sleep(500); Thread.Sleep(500);
if (RunningLogger is not null) RunningLogger?.Dispose();
RunningLogger.Dispose();
RunningLogger = null; RunningLogger = null;
if (OpenedFile is not null) OpenedFile?.Close();
OpenedFile.Close();
} }