- Implement better start/stop for the webinterface

- Save session tokens between startups
This commit is contained in:
Infi
2024-08-28 14:09:09 +02:00
parent 579d405621
commit 2ababa82b0
8 changed files with 400 additions and 122 deletions
+10 -1
View File
@@ -131,7 +131,16 @@ public sealed class Plugin : IDalamudPlugin
#endif
ServerCore = new ServerCore(this);
Task.Run(() => ServerCore.Start());
// Automatically start the webserver if requested
if (Config.WebinterfaceAutoStart)
{
Task.Run(() =>
{
ServerCore.Start();
ServerCore.Run();
});
}
}
catch (Exception ex)
{