Update Logger.cs
This commit is contained in:
parent
7cdc1b35ea
commit
cc976c86a1
1 changed files with 2 additions and 4 deletions
|
|
@ -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();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue