Move Init back to where it was to prevent UI init issues

This commit is contained in:
2023-06-27 15:02:13 -04:00
parent a8dfaf6239
commit e9a9e180a8

View File

@@ -103,7 +103,7 @@ namespace Torch.Server
}
#endif
_server.Init();
var uiThread = new Thread(() =>
{
var ui = new TorchUI(_server);
@@ -116,7 +116,7 @@ namespace Torch.Server
uiThread.SetApartmentState(ApartmentState.STA);
uiThread.Start();
_server.Init();
if (Config.Autostart || Config.TempAutostart)