this should actually work for everyone, if you're lucky

This commit is contained in:
13xforever 2020-04-03 21:57:17 +05:00
parent d3036028a2
commit 2f9047a4a5

View File

@ -276,9 +276,8 @@ namespace CompatBot
Config.Log.Warn("Detected the new discord gateway opcode, restarting...");
var restartThread = new Thread(() => Sudo.Bot.Restart(InvalidChannelId, "Restarted due to issues with the new Discord gateway opcode issues"));
restartThread.Start();
restartThread.Join(100);
if (SandboxDetector.Detect() == SandboxType.Docker)
Environment.Exit(-1);
restartThread.Join(1000);
Environment.Exit(-1);
}
}
else if (eventArgs.Level == LogLevel.Warning)