Move Init back to where it was to prevent UI init issues
This commit is contained in:
@@ -103,7 +103,7 @@ namespace Torch.Server
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
_server.Init();
|
|
||||||
var uiThread = new Thread(() =>
|
var uiThread = new Thread(() =>
|
||||||
{
|
{
|
||||||
var ui = new TorchUI(_server);
|
var ui = new TorchUI(_server);
|
||||||
@@ -116,7 +116,7 @@ namespace Torch.Server
|
|||||||
|
|
||||||
uiThread.SetApartmentState(ApartmentState.STA);
|
uiThread.SetApartmentState(ApartmentState.STA);
|
||||||
uiThread.Start();
|
uiThread.Start();
|
||||||
|
_server.Init();
|
||||||
|
|
||||||
|
|
||||||
if (Config.Autostart || Config.TempAutostart)
|
if (Config.Autostart || Config.TempAutostart)
|
||||||
|
Reference in New Issue
Block a user