Move update check to after initialization (since its blocking)

This commit is contained in:
Lion Kortlepel
2021-09-10 16:37:46 +03:00
committed by Lion
parent 6542be09ee
commit 3fc397814c
2 changed files with 2 additions and 2 deletions

View File

@@ -45,7 +45,6 @@ int main(int argc, char** argv) try {
Sentry.SetupUser();
Sentry.PrintWelcome();
Application::CheckForUpdates();
TResourceManager ResourceManager;
TPPSMonitor PPSMonitor(Server);
THeartbeatThread Heartbeat(ResourceManager, Server);
@@ -53,6 +52,7 @@ int main(int argc, char** argv) try {
TLuaEngine LuaEngine(Server, Network);
PPSMonitor.SetNetwork(Network);
Application::Console().InitializeLuaConsole(LuaEngine);
Application::CheckForUpdates();
// TODO: replace
while (!Shutdown) {