diff --git a/Logging/MemoryLogger.cs b/Logging/MemoryLogger.cs index 21e699c..60b8a94 100644 --- a/Logging/MemoryLogger.cs +++ b/Logging/MemoryLogger.cs @@ -14,7 +14,8 @@ public class MemoryLogger : LoggerBase protected override void Write(LogMessage value) { - _logMessages.Add(value.logTime, value); + while(!_logMessages.TryAdd(value.logTime, value)) + Thread.Sleep(10); } public string[] GetLogMessage()