From 596a4616b343bc527c0a90df0f0be0ece970c3c7 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Wed, 18 Aug 2021 23:38:23 -0400 Subject: no longer abort input thread when exiting `thread.Abort` is unimplemented in .NET 5, but it's not needed anyway since all threads will be aborted when the game exits. --- src/SMAPI/Framework/Logging/LogManager.cs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/SMAPI/Framework/Logging/LogManager.cs b/src/SMAPI/Framework/Logging/LogManager.cs index a3d4f23d..7f1b76e7 100644 --- a/src/SMAPI/Framework/Logging/LogManager.cs +++ b/src/SMAPI/Framework/Logging/LogManager.cs @@ -162,8 +162,6 @@ namespace StardewModdingAPI.Framework.Logging // keep console thread alive while the game is running while (continueWhile()) Thread.Sleep(1000 / 10); - if (inputThread.ThreadState == ThreadState.Running) - inputThread.Abort(); } /// Show a 'press any key to exit' message, and exit when they press a key. -- cgit