From 2d7350cbaf5133cfc4e4740c7ed5fbb75279c44b Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 5 May 2025 11:49:33 -0400 Subject: [PATCH] Close the log archive, if it exists --- CHANGELIST.md | 1 + MPF.Processors/BaseProcessor.cs | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELIST.md b/CHANGELIST.md index 726f9cd6..f2fab581 100644 --- a/CHANGELIST.md +++ b/CHANGELIST.md @@ -42,6 +42,7 @@ - Tweak to previous commit for some build versions - Fix lines wiped before displayed - Update redumper to build 565 +- Close the log archive, if it exists ### 3.3.0 (2025-01-03) diff --git a/MPF.Processors/BaseProcessor.cs b/MPF.Processors/BaseProcessor.cs index 75dc294b..57cfe0ae 100644 --- a/MPF.Processors/BaseProcessor.cs +++ b/MPF.Processors/BaseProcessor.cs @@ -239,6 +239,11 @@ namespace MPF.Processors #endif } +#if NET452_OR_GREATER || NETCOREAPP + // Close the log archive, if it exists + logArchive?.Dispose(); +#endif + return missingFiles; }