summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-08-23 22:11:11 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-08-23 22:11:11 -0400
commit7f35e74ca17f50cb461abff51ede4f0cf0a8e3dd (patch)
treef8462259f36340834d42d5cd871ebf58335c102b /src/SMAPI/Framework
parentc37280222dac3409f78413d90c8e50f6d410b3d1 (diff)
downloadSMAPI-7f35e74ca17f50cb461abff51ede4f0cf0a8e3dd.tar.gz
SMAPI-7f35e74ca17f50cb461abff51ede4f0cf0a8e3dd.tar.bz2
SMAPI-7f35e74ca17f50cb461abff51ede4f0cf0a8e3dd.zip
fix object-disposed error
Diffstat (limited to 'src/SMAPI/Framework')
-rw-r--r--src/SMAPI/Framework/SCore.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs
index 2346550e..c4fb3b5d 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -349,10 +349,10 @@ namespace StardewModdingAPI.Framework
// dispose core components
this.IsGameRunning = false;
- this.LogManager?.Dispose();
this.ContentCore?.Dispose();
this.CancellationToken?.Dispose();
this.GameInstance?.Dispose();
+ this.LogManager?.Dispose(); // dispose last to allow for any last-second log messages
// end game (moved from Game1.OnExiting to let us clean up first)
Process.GetCurrentProcess().Kill();