Merge ScriptScheduler's config

This commit is contained in:
BruceChen 2022-10-05 17:10:10 +08:00
parent e4952dbee0
commit e0678ea7a5
3 changed files with 141 additions and 172 deletions

View file

@ -452,7 +452,7 @@ namespace MinecraftClient
if (timeoutdetector != null)
{
if (Thread.CurrentThread != timeoutdetector.Item1)
if (timeoutdetector != null && Thread.CurrentThread != timeoutdetector.Item1)
timeoutdetector.Item2.Cancel();
timeoutdetector = null;
}