diff --git a/IPA.Loader/Logging/StandardLogger.cs b/IPA.Loader/Logging/StandardLogger.cs index a5c0570d..c0279588 100644 --- a/IPA.Loader/Logging/StandardLogger.cs +++ b/IPA.Loader/Logging/StandardLogger.cs @@ -198,13 +198,20 @@ namespace IPA.Logging // make sure that the queue isn't being cleared logWaitEvent.Wait(); - logQueue.Add(new LogMessage + try { - Level = level, - Message = message, - Logger = this, - Time = Utils.CurrentTime() - }); + logQueue.Add(new LogMessage + { + Level = level, + Message = message, + Logger = this, + Time = Utils.CurrentTime() + }); + } + catch (InvalidOperationException) + { + // the queue has been closed, so we leave it + } } ///