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.
This commit is contained in:
parent
68e629f17c
commit
596a4616b3
|
@ -162,8 +162,6 @@ namespace StardewModdingAPI.Framework.Logging
|
||||||
// keep console thread alive while the game is running
|
// keep console thread alive while the game is running
|
||||||
while (continueWhile())
|
while (continueWhile())
|
||||||
Thread.Sleep(1000 / 10);
|
Thread.Sleep(1000 / 10);
|
||||||
if (inputThread.ThreadState == ThreadState.Running)
|
|
||||||
inputThread.Abort();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>Show a 'press any key to exit' message, and exit when they press a key.</summary>
|
/// <summary>Show a 'press any key to exit' message, and exit when they press a key.</summary>
|
||||||
|
|
Loading…
Reference in New Issue