This commit is contained in:
Mateleo 2024-11-22 16:08:49 +01:00
parent cf8ad89c3f
commit d191af9b93

View File

@ -310,8 +310,10 @@ namespace DiIiS_NA
private static bool _shuttingDown = false;
public static void Shutdown(Exception exception = null)
{
Logger.Trace("Shutdown here");
Logger.Debug("Stack trace at shutdown: " + Environment.StackTrace); // Log the stack trace
if (_shuttingDown) return;
_shuttingDown = true;
if (!IsCancellationRequested())