mirror of
https://github.com/RPCS3/discord-bot.git
synced 2025-03-03 15:29:22 +00:00
this should actually work for everyone, if you're lucky
This commit is contained in:
parent
d3036028a2
commit
2f9047a4a5
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user